X
Tap here to go to the mobile version of the site.

Fóram Tacaíochta

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

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

Postáilte

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://

Tuilleadh mionsonraí faoin chóras

Breiseáin Shuiteáilte

  • -Version 1.3.1.0
  • Google Talk Plugin Video Accelerator version:0.1.43.2
  • Default Plug-in
  • Google Update
  • Shockwave Flash 10.0 r12
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 1.6.0_16 for Mozilla browsers
  • Adobe PDF Plug-In For Firefox and Netscape

Feidhmchlár

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

Tuilleadh Eolais

var requestedUrl = escapeProperly(window.location.href);
var url_array = window.location.href.split("/");
var lastelementindex = url_array.length -1;
var pagename = url_array[lastelementindex];
STSNavigate("/utility/404.aspx?oldUrl=" + requestedUrl +"&k=" + pagename);

the-edmeister
  • Top 25 Contributor
  • Moderator
5412 réiteach 40317 freagra

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

Fix the problem on the server that is hosting that page.
cor-el
  • Top 10 Contributor
  • Moderator
17589 réiteach 159130 freagra

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.

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.