Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Fix: return empty response for 204 preflight requests #61

Merged
merged 1 commit into from Jul 19, 2019
Merged

Fix: return empty response for 204 preflight requests #61

merged 1 commit into from Jul 19, 2019

Conversation

vdbelt
Copy link
Contributor

@vdbelt vdbelt commented Jul 19, 2019

As mentioned in #60, it appears that returning a 204 No Content response with content indeed causes odd behaviour in some clients. This PR fixes that by removing the 'Preflight OK' text, so it follows the specs.

Related info:
httpwg/http-core#26
postmanlabs/postman-app-support#2418

@freekmurze freekmurze merged commit 5cf1273 into spatie:master Jul 19, 2019
@freekmurze
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants