Right now, pages served via PartialToStandaloneHtmlProvider do not work correctly when HTTP headers like Accept are sent in lowercase (accept).
This turned out to be a problem when Cloudflare is ran as a HTTPS proxy for Starcounter, because then it rewrites all the request headers to be lowercase (see: https://github.com/Starcounter/AdminTrack/issues/296)
Right now, pages served via
PartialToStandaloneHtmlProvider
do not work correctly when HTTP headers likeAccept
are sent in lowercase (accept
).This turned out to be a problem when Cloudflare is ran as a HTTPS proxy for Starcounter, because then it rewrites all the request headers to be lowercase (see: https://github.com/Starcounter/AdminTrack/issues/296)
Steps to reproduce the problem
curl -XGET -H 'accept: text/html' -i 'http://localhost:8080/WebsiteEditor'
(or use Postman)Expected
You should get a HTML response.
Actual
You get a JSON response.
Note that for this command:
curl -XGET -H 'Accept: text/html' -i 'http://localhost:8080/WebsiteEditor'
you get the expected response.Screenshot
Starcounter version 2.3.1.6682
Related: https://github.com/Starcounter/level1/issues/2315