Skip to content

Commit cd96262

Browse files
Chase Coalwelltrivikr
Chase Coalwell
authored andcommitted
fix: add argument to plugin (#562)
1 parent 74e5802 commit cd96262

File tree

1 file changed

+4
-2
lines changed
  • packages/middleware-expect-continue/src

1 file changed

+4
-2
lines changed

Diff for: packages/middleware-expect-continue/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function addExpectContinueMiddleware(): BuildMiddleware<any, any> {
1515
): BuildHandler<any, Output> => async (
1616
args: BuildHandlerArguments<any>
1717
): Promise<BuildHandlerOutput<Output>> => {
18-
let request = { ...args.request };
18+
let { request } = args;
1919
if (HttpRequest.isInstance(request) && request.body) {
2020
request.headers = {
2121
...request.headers,
@@ -35,7 +35,9 @@ export const addExpectContinueMiddlewareOptions: BuildHandlerOptions = {
3535
name: "addExpectContinueMiddleware"
3636
};
3737

38-
export const getAddExpectContinuePlugin = (): Pluggable<any, any> => ({
38+
export const getAddExpectContinuePlugin = (
39+
unused: any
40+
): Pluggable<any, any> => ({
3941
applyToStack: clientStack => {
4042
clientStack.add(
4143
addExpectContinueMiddleware(),

0 commit comments

Comments
 (0)