Website bug
1-byte-man opened this issue · comments
I can't reproduce… Do you have anything specific in your setup? Which Windows and Firefox versions? Can you reproduce with another browser and/or OS, or from another computer?
I can't reproduce… Do you have anything specific in your setup? Which Windows and Firefox versions? Can you reproduce with another browser and/or OS, or from another computer?
I use firefox 72.0.2 in windows 7
Are you always on the same network connection? Could you try from another place? I still can't reproduce…
Ok. I'll try later. I'm gonna send you the results
I think that server tries to match the language code to the file extension.
In most cases (e.g. Accept-Language: fr
or de
) it will return text/html
(as it should), but when it matches the file extension, it will change the Content-Type to match (e.g. pl
→ text/x-perl
, es
→ application/ecmascript
).
$ curl -Is https://joinplu.me | grep content-type
content-type: text/html; charset=utf-8
$ curl -IsH 'Accept-Language: pl' https://joinplu.me | grep content-type
content-type: text/x-perl; charset=utf-8
$ curl -IsH 'Accept-Language: es' https://joinplu.me | grep content-type
content-type: application/ecmascript
This applies only to html file(s). Images, scripts, stylesheets, and fonts work correctly.
OK, this is very weird, I'll see what's wrong with the config…
I think that server tries to match the language code to the file extension.
In most cases (e.g.
Accept-Language: fr
orde
) it will returntext/html
(as it should), but when it matches the file extension, it will change the Content-Type to match (e.g.pl
→text/x-perl
,es
→application/ecmascript
).$ curl -Is https://joinplu.me | grep content-type content-type: text/html; charset=utf-8 $ curl -IsH 'Accept-Language: pl' https://joinplu.me | grep content-type content-type: text/x-perl; charset=utf-8 $ curl -IsH 'Accept-Language: es' https://joinplu.me | grep content-type content-type: application/ecmascriptThis applies only to html file(s). Images, scripts, stylesheets, and fonts work correctly.
Yes, I've checked the http response and that's right. The browser gets the content as JavaScript instead of html. here's a screenshot
This is still happening, please fix.
Hi, all.
I fixed this problem. Can you confirm? https://joinplu.me/
Sorry, I introduced another bug during fixing this content-type
bug. So I reverted server config and this bug remains...
Again, I fixed the problem.
Seems to be working fine now
@martinszy Thanks for confirmation!
I will close this issue. Feel free to reopen this and mention me when you find the same problem remains.