File tree 1 file changed +4
-2
lines changed
packages/middleware-expect-continue/src
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function addExpectContinueMiddleware(): BuildMiddleware<any, any> {
15
15
) : BuildHandler < any , Output > => async (
16
16
args : BuildHandlerArguments < any >
17
17
) : Promise < BuildHandlerOutput < Output > > => {
18
- let request = { ... args . request } ;
18
+ let { request } = args ;
19
19
if ( HttpRequest . isInstance ( request ) && request . body ) {
20
20
request . headers = {
21
21
...request . headers ,
@@ -35,7 +35,9 @@ export const addExpectContinueMiddlewareOptions: BuildHandlerOptions = {
35
35
name : "addExpectContinueMiddleware"
36
36
} ;
37
37
38
- export const getAddExpectContinuePlugin = ( ) : Pluggable < any , any > => ( {
38
+ export const getAddExpectContinuePlugin = (
39
+ unused : any
40
+ ) : Pluggable < any , any > => ( {
39
41
applyToStack : clientStack => {
40
42
clientStack . add (
41
43
addExpectContinueMiddleware ( ) ,
You can’t perform that action at this time.
0 commit comments