Displaying 1 result from an estimated 1 matches for "raw_put_data".
Did you mean:
raw_post_data
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...;
From action_controller/cgi_ext/raw_post_data_fix.rb, the PUT method is
handled the same way as POST, which would have the content body parsed
for params. So, I made a patch by redefining
CGI::QueryExtension#read_query_params
Note that I have to put the body content into env_table[''RAW_PUT_DATA'']
instead of env_table[''RAW_POST_DATA'']. The latter will have the same
problem.
class CGI #:nodoc:
module QueryExtension
private
def setup_raw_put_data
stdinput.binmode if stdinput.respond_to?(:binmode)
content = stdinput.read(I...