Skip to content

fix(node-layer): Fixes file upload handling#504

Open
mothershipper wants to merge 1 commit intomapbox:mainfrom
mothership:task/jack/fix-file-upload
Open

fix(node-layer): Fixes file upload handling#504
mothershipper wants to merge 1 commit intomapbox:mainfrom
mothership:task/jack/fix-file-upload

Conversation

@mothershipper
Copy link
Copy Markdown

PR #479 attempted to fix requests where the body was null/undefined by setting the GOT body to an empty string - however, this wiped out the body being set by the file handling cases before this logic.

This commit adds a check to confirm that gotBody is falsy before setting it to an empty string, preserving the file body.

Fixes #486

PR mapbox#479 attempted to fix requests where the body was null/undefined by
setting the GOT body to an empty string - however, this wiped out
the body being set by the file handling cases before this logic.

This commit adds a check to confirm that gotBody is falsy before setting
it to an empty string, preserving the file body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create tileset source throws error in v0.16

1 participant