Skip to content

Commit 8e8dc98

Browse files
committed
fix:: README + small lints
1 parent b9fdd6d commit 8e8dc98

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ npm i @fastify/reply-from
1414
```
1515

1616
## Compatibility with @fastify/multipart
17-
1817
`@fastify/reply-from` and [`@fastify/multipart`](https://github.com/fastify/fastify-multipart) should not be registered as sibling plugins nor should they be registered in plugins which have a parent-child relationship.`<br>` The two plugins are incompatible, in the sense that the behavior of `@fastify/reply-from` might not be the expected one when the above-mentioned conditions are not respected.`<br>` This is due to the fact that `@fastify/multipart` consumes the multipart content by parsing it, hence this content is not forwarded to the target service by `@fastify/reply-from`.`<br>`
1918
However, the two plugins may be used within the same fastify instance, at the condition that they belong to disjoint branches of the fastify plugins hierarchy tree.
2019

@@ -103,7 +102,6 @@ proxy.register(require('@fastify/reply-from'), {
103102
}
104103
})
105104
```
106-
107105
See undici own options for more configurations.
108106

109107
You can also pass the plugin a custom instance:
@@ -215,7 +213,7 @@ This only applies when a custom [`body`](#body) is not passed in. Defaults to:
215213
On which methods should the connection be retried in case of socket hang up.
216214
**Be aware** that setting here not idempotent method may lead to unexpected results on target.
217215

218-
By default: `['GET', 'HEAD', 'OPTIONS', 'TRACE', 'POST', 'PATCH']`
216+
By default: `['GET', 'HEAD', 'OPTIONS', 'TRACE']`
219217

220218
This plugin will always retry on 503 errors, _unless_ `retryMethods` does not contain `GET`.
221219

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const {
2121
UndiciSocketError,
2222
InternalServerError
2323
} = require('./lib/errors')
24-
const { warn } = require('node:console')
2524

2625
const fastifyReplyFrom = fp(function from (fastify, opts, next) {
2726
const contentTypesToEncode = new Set([

0 commit comments

Comments
 (0)