Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Make rawBody be the bytes #2215

Merged
merged 16 commits into from
Aug 17, 2021
Prev Previous commit
Next Next commit
remove unnecessary rawBody check
  • Loading branch information
JeanJPNM committed Aug 17, 2021
commit a4c479851c7cf5c2664ce16e22705545d2564517
4 changes: 0 additions & 4 deletions packages/kit/src/runtime/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ export async function respond(incoming, options, state = {}) {
...incoming,
headers,
body: parse_body(incoming.rawBody, headers),
rawBody:
typeof incoming.rawBody === 'string'
? new TextEncoder().encode(incoming.rawBody)
: incoming.rawBody,
params: {},
locals: {}
};
Expand Down