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

fix: strip accept header when using history-api-fallback #98

Merged
merged 1 commit into from
Jan 28, 2019

Conversation

shellscape
Copy link
Owner

This PR contains:

  • bugfix
  • feature
  • refactor
  • tests
  • documentation
  • metadata

Breaking Changes?

  • yes
  • no

If yes, please describe the breakage.

Please Describe Your Changes

Fixes #94. When using Firefox with the historyFallback option (connect-history-api-fallback), the /wps WebSocket path is incorrectly given an Accept header, which makes the middleware think it's a directory index. The added middleware strips that header in that event, preventing the error, only when the historyFallback option is used.

@shellscape shellscape merged commit 06aee44 into master Jan 28, 2019
@shellscape shellscape deleted the fix/middleware-accept branch January 28, 2019 12:44
@shellscape shellscape mentioned this pull request Mar 19, 2019
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HMR broken with historyFallback in Firefox
3 participants