Plume-org / joinplu.me

The official Plume website

Home Page:https://joinplu.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website bug

1-byte-man opened this issue · comments

Hello, when I try to open teh website it only loads the plain html text

Here is a screenshot with the bug

imagen

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

Also happens in chrome 80.0.3987.87 same OS
imagen

And firefox 71.0 in fedora 30
imagen

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

commented

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. pltext/x-perl, esapplication/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 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. pltext/x-perl, esapplication/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.

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
imagen

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.