status code
Reported by Vincent | July 20th, 2008 @ 08:31 AM | 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 changed from 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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
