We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1ea8f commit ae3fcf3Copy full SHA for ae3fcf3
test/index.test.js
@@ -184,10 +184,17 @@ tap.test('Plugin#Request IP', scope => {
184
reply.send('')
185
})
186
187
+ instance.get('/none', (req, reply) => {
188
+ t.equal(req.ip, '')
189
+ t.equal(req._fastifyip, '')
190
+
191
+ reply.send('')
192
+ })
193
194
done()
195
}
196
- t.plan(8)
197
+ t.plan(10)
198
199
app.register(childscope1, { prefix: '/fallback' })
200
app.register(childscope2, { prefix: '/no-fallback' })
@@ -223,6 +230,10 @@ tap.test('Plugin#Request IP', scope => {
223
230
'x-real-ip': expectedIP
224
231
225
232
233
234
+ await app.inject({
235
+ path: '/soft/none'
236
226
237
227
238
228
239
scope.test('Should infer the header based on if is AWS context', async t => {
0 commit comments