* empty content type on post request
[not found] <1740559741.29969521275073251097.JavaMail.root@sz0168a.westchester.pa.mail.comcast.net>
@ 2010-05-28 19:14 ` bballkevinyang
0 siblings, 0 replies; only message in thread
From: bballkevinyang @ 2010-05-28 19:14 UTC (permalink / raw)
To: rack-devel
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
In rack version 1.1.0 - request.rb, the method media_type(...) can't handle "" (ie empty) content_type.
def media_type
content_type && content_type.split(/\s*[;,]\s*/, 2).first.downcase
end
An easy fix can be:
def media_type
content_type && content_type.split(/\s*[;,]\s*/, 2).first.to_s.downcase
end
[-- Attachment #2: Type: text/html, Size: 733 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-28 22:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1740559741.29969521275073251097.JavaMail.root@sz0168a.westchester.pa.mail.comcast.net>
2010-05-28 19:14 ` empty content type on post request bballkevinyang
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).