#103 ✓resolved
Toby Tripp

Request#params throws exception on POST if CONTENT_TYPE is empty

Reported by Toby Tripp | August 28th, 2010 @ 05:50 PM


rack-1.2.1/lib/rack/request.rb:44:in media_type'
rack-1.2.1/lib/rack/request.rb:146:in POST'

The problem appears to lie in #media_type trying to split the empty String.

I can quickly fix this myself if someone has a reasonable idea what the behavior should be. It seems to me that #form_data? should return false if CONTENT_TYPE is blank.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket