Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5235 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH][TINY] Fix for PUT requests to work with multipart data

Reported by: guy.naor@famundo.com Assigned to: David
Priority: normal Milestone:
Component: ActionPack Version:
Severity: normal Keywords:
Cc:

Description

The code to fix the CGI requests to support multipart request in actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb doesn't take PUT requests into account. This patch and the included test will fix that. It's a one line change. And will make it easier to write REST interfaces for rails.

See also my writeup about it in my blog.

Attachments

raw_post_data_fix_for_put.diff (1.1 kB) - added by guy.naor@famundo.com on 05/30/06 22:49:01.
Patch + tests to make multipart requests work with PUT

Change History

05/30/06 22:49:01 changed by guy.naor@famundo.com

  • attachment raw_post_data_fix_for_put.diff added.

Patch + tests to make multipart requests work with PUT

06/01/06 00:01:54 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [4388]) Cope with missing content type and length headers. Parse parameters from multipart and urlencoded request bodies only. Accept multipart PUT parameters. Closes #5235.