@nxtedition/nxt-undici 6.1.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/lib/interceptor/proxy.js +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -63,14 +63,14 @@ function wrapDispatch(dispatcher) {
|
|
|
63
63
|
interceptors.dns(),
|
|
64
64
|
interceptors.requestBodyFactory(),
|
|
65
65
|
interceptors.lookup(),
|
|
66
|
-
interceptors.requestId(),
|
|
67
66
|
interceptors.responseRetry(),
|
|
68
67
|
interceptors.responseVerify(),
|
|
69
68
|
interceptors.proxy(),
|
|
70
69
|
interceptors.cache(),
|
|
71
|
-
interceptors.responseError(),
|
|
72
70
|
interceptors.redirect(),
|
|
73
71
|
interceptors.log({ bindings: { intercept: 'downstream' } }),
|
|
72
|
+
interceptors.requestId(),
|
|
73
|
+
interceptors.responseError(),
|
|
74
74
|
(dispatch) => (opts, handler) => {
|
|
75
75
|
const headers = parseHeaders(opts.headers)
|
|
76
76
|
|
package/lib/interceptor/proxy.js
CHANGED
|
@@ -172,7 +172,9 @@ export default () => (dispatch) => (opts, handler) => {
|
|
|
172
172
|
// semantics do not anticipate such a body.
|
|
173
173
|
// undici will error if provided an unexpected content-length: 0 header.
|
|
174
174
|
}
|
|
175
|
-
if (key === '
|
|
175
|
+
if (key[0] === ':') {
|
|
176
|
+
// strip pseudo headers
|
|
177
|
+
} else if (key === 'expect') {
|
|
176
178
|
// undici doesn't support expect header.
|
|
177
179
|
} else {
|
|
178
180
|
obj[key] = val
|