rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Missing HTTP reason phrase
@ 2010-02-25 16:01 Florian Munz
  2010-02-25 16:35 ` Iñaki Baz Castillo
  0 siblings, 1 reply; 9+ messages in thread
From: Florian Munz @ 2010-02-25 16:01 UTC (permalink / raw)
  To: Rack Development

Hi,

I was debugging a problem that our Rails app wasn't sending the HTTP
reason phrase in the response, which causes problems in a J2ME HTTP
client.

(responding with "HTTP/1.1 200" instead of "HTTP/1.1 200 OK")

I was wondering whose responsibility this is? I tested this with a lot
of web servers and most of them just add the reason phrase if it's
missing. Nginx, which we use, is the only one that doesn't do it.

The HTTP spec states "The reason phrases listed here are only
recommendations -- they MAY be replaced by local equivalents without
affecting the protocol". This currently doesn't seem to be possible
with Rack, since it only passes the integer.

Any thoughts if this something that should be fixed in Rack or in
nginx?


Cheers,
Florian

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-01 18:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-25 16:01 Missing HTTP reason phrase Florian Munz
2010-02-25 16:35 ` Iñaki Baz Castillo
2010-02-25 17:23   ` Florian Munz
2010-02-25 19:14     ` Iñaki Baz Castillo
2010-02-26  0:15       ` Ryan Tomayko
2010-03-01 15:34         ` Florian Munz
2010-03-01 18:03           ` Christian Neukirchen
2010-03-01 18:10             ` Iñaki Baz Castillo
2010-03-01 18:11               ` Magnus Holm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).