Skip to content

Commit

Permalink
fix(middleware-content-length): header name
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored and trivikr committed Jan 3, 2020
1 parent ef83946 commit 5fb3936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/middleware-content-length/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function contentLengthMiddleware(
if (length !== undefined) {
request.headers = {
...request.headers,
CONTENT_LENGTH_HEADER: String(length)
[CONTENT_LENGTH_HEADER]: String(length)
};
}
}
Expand Down

0 comments on commit 5fb3936

Please sign in to comment.