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

Add missing content-type header for empty POST requests #179

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Conversation

geoffrich
Copy link
Owner

Closes #178

Azure functions seem to strip the content-type header from empty POST requests, but SvelteKit requires it. Add it back before sending the request to SK.

More details: #178 (comment)

Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-desert-00b80111e-179.westus2.2.azurestaticapps.net

@geoffrich
Copy link
Owner Author

E2E tests are flaky, verified manually

@geoffrich geoffrich merged commit d14aae1 into main Jul 13, 2024
4 of 5 checks passed
@geoffrich geoffrich deleted the issue-178 branch July 13, 2024 23:58
geoffrich added a commit to derkoe/svelte-adapter-azure-swa that referenced this pull request Jul 14, 2024
idan added a commit to idan/svelte-adapter-azure-swa that referenced this pull request Sep 4, 2024
Documents the behavior encountered in geoffrich#178 and the workaround in geoffrich#179
geoffrich pushed a commit that referenced this pull request Sep 5, 2024
Documents the behavior encountered in #178 and the workaround in #179
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.

POSTs return 415 in prod but not dev
1 participant