This is what's happening, we have site in the middle of development. The developer is running mongrel on his computer. He then put it up on the staging server which running Litespeed with lsapi. The rails app is working, but litespeed is serving up the wrong header or something. Here is the beginning what I see on the web browser.
--------------------------------------------------------------------
Content-Type: text/html; charset=utf-8
Set-Cookie: _eqnow_session_id=1e1bacd9b11a17b7831f6447538fb1a6; path=/
Status: 200 OK
Cache-Control: no-cache
Content-Length: 7489
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
.
.
.
---------------------------------------------------------------------
Yes, I see the content-type in the browsers, Firefox and IE. When select "view page info" in Firefox, It said Type: text/plain, encoding: ISO-8859-1.
When I telnet into port 80 of the same server and did GET for the same page, I don't see anything about Content-Type being text/plain. Below is what I got from the telnet session.
----------------
GET /product_news HTTP/1.1
host: eqnow.myhost.net
HTTP/1.1 404 Not Found
Content-Length: 7666
Date: Mon, 15 Oct 2007 06:05:19 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Content-Type: text/html; charset=utf-8
Set-Cookie: _eqnow_session_id=447c8d24db39ea3aa6e33810d7c6729a; path=/
Status: 200 OK
Cache-Control: no-cache
Content-Length: 7489
So what's causing my web browsers to think it's plain text and not rendering the html?
--------------------------------------------------------------------
Content-Type: text/html; charset=utf-8
Set-Cookie: _eqnow_session_id=1e1bacd9b11a17b7831f6447538fb1a6; path=/
Status: 200 OK
Cache-Control: no-cache
Content-Length: 7489
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
.
.
.
---------------------------------------------------------------------
Yes, I see the content-type in the browsers, Firefox and IE. When select "view page info" in Firefox, It said Type: text/plain, encoding: ISO-8859-1.
When I telnet into port 80 of the same server and did GET for the same page, I don't see anything about Content-Type being text/plain. Below is what I got from the telnet session.
----------------
GET /product_news HTTP/1.1
host: eqnow.myhost.net
HTTP/1.1 404 Not Found
Content-Length: 7666
Date: Mon, 15 Oct 2007 06:05:19 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Content-Type: text/html; charset=utf-8
Set-Cookie: _eqnow_session_id=447c8d24db39ea3aa6e33810d7c6729a; path=/
Status: 200 OK
Cache-Control: no-cache
Content-Length: 7489
So what's causing my web browsers to think it's plain text and not rendering the html?