status code
Reported by Vincent | July 22nd, 2008 @ 10:05 PM | in Future
First, I want congratulate you for have made a fast server. I am glad to use Thin with nginx instead of mongrel :)
A short example is more relevant for explain my problem...
GET /test HTTP/1.0
HTTP/1.1 200 OK
Server: nginx/0.7.1
Date: Sun, 20 Jul 2008 12:15:07 GMT
Content-Type: text/html
Connection: close
Status: 500 Internal Server Error
Content-Type: text/html
<html><body><h1>500 Internal Server Error</h1></body></html>
The page is returned with status 200, it should be 500. I think it's a Thin problem because when I look at the Nginx debug log:
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy status 200 "200 OK"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Content-Type: text/html"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Connection: close"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Server: thin 0.8.2 codename Double Margarita"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header done
Thanks
Vincent
Comments and changes to this ticket
-
macournoyer July 22nd, 2008 @ 10:06 PM
- Tag set to header, http
Looks like some headers are ending up in your body. Are you using it from Rails or something else?
-
Michael Klishin (antares) August 8th, 2008 @ 12:43 AM
Please provide code of action that causes it and try with nginx 0.6 (stable) first. It's hard to write a spec from what's given here.
-
macournoyer August 8th, 2008 @ 09:38 AM
please run w/ --trace and paste output so we can see the raw request.
-
macournoyer September 1st, 2008 @ 10:42 PM
- State changed from new to hold
pls provide more info to reopen
I need: * thin.log after running w/ --trace * code of Rails action causing problem
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป