Skip to content

Commit

Permalink
Merge pull request dillonkearns#428 from jreusch4/fix-apiroute-header…
Browse files Browse the repository at this point in the history
…s-status

fix dillonkearns#414: use the statusCode and headers fields from the response.body instead of the response.
  • Loading branch information
dillonkearns authored Jan 22, 2024
2 parents accbf84 + e2eb656 commit bcd64aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ export async function render(request) {
// isBase64Encoded
return {
body: response.body.body,
statusCode: response.statusCode,
statusCode: response.body.statusCode,
kind: response.kind,
headers: response.headers,
headers: response.body.headers,
isBase64Encoded: response.body.isBase64Encoded,
}
} else {
Expand Down

0 comments on commit bcd64aa

Please sign in to comment.