File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/middleware-sdk-api-gateway/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function acceptsHeaderMiddleware(): 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 ) ) {
20
20
request . headers = {
21
21
...request . headers ,
@@ -35,7 +35,7 @@ export const acceptsHeaderMiddlewareOptions: BuildHandlerOptions = {
35
35
name : "acceptsHeaderMiddleware"
36
36
} ;
37
37
38
- export const getAcceptsHeaderPlugin = ( ) : Pluggable < any , any > => ( {
38
+ export const getAcceptsHeaderPlugin = ( unused : any ) : Pluggable < any , any > => ( {
39
39
applyToStack : clientStack => {
40
40
clientStack . add ( acceptsHeaderMiddleware ( ) , acceptsHeaderMiddlewareOptions ) ;
41
41
}
You can’t perform that action at this time.
0 commit comments