Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve HTML Detection in History Support Middleware
Use built in ExpressJS methods for detecting HTML in the Accept header.
- Loading branch information
c720399
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the
--proxy
feature.req.accepts('html')
returns true for*/*
, so my API requests no longer go through the proxy. The XHR requests to my api don't specifytext/html
, so previously they would go through the proxy to the API.c720399
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #1263