Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

Showing html code when content-type is text/plain. Not able to read meta data information inside the html.

  • 2 respostas
  • 20 têm este problema
  • 36 visualizações
  • Última resposta de the-edmeister

more options

Mozilla displays html code in stead of the correct page. I checked the content-type in the header, it is text/plain. But inside the html file the content-type is mentioned as text/html in the meta tag. Is there any way to force content-type to mozilla to use text/html instead of reading from the response header.

URL of affected sites

http://

Mozilla displays html code in stead of the correct page. I checked the content-type in the header, it is text/plain. But inside the html file the content-type is mentioned as text/html in the meta tag. Is there any way to force content-type to mozilla to use text/html instead of reading from the response header. == URL of affected sites == http://

Todas as respostas (2)

more options

Fix the problem on the server that is hosting that page.

more options

Make sure that the file has a .html or another known file extension to make sure that the server recognizes it as an HTML file. The server may send unknown files automatically as text plain.