Ticket #112: camping-1.5.180-request-body.patch

File camping-1.5.180-request-body.patch, 466 bytes (added by whateley, 22 months ago)

CONTENT_TYPE rather than HTTP_CONTENT_TYPE

  • camping-unabridged.rb

    old new  
    421421          C.qsp(fn,'&;',fh,qs) if fn 
    422422          fh[:tempfile].rewind if fh.is_a?H 
    423423        end 
    424       elsif @method == "post" 
     424      elsif @method == "post" and e.CONTENT_TYPE == "application/x-www-form-urlencoded" 
    425425        qs.merge!(C.qsp(@in.read)) 
    426426      end 
    427427      @cookies, @input = @k.dup, qs.dup