Feature #17111 ยป patch-1.diff
| lib/net/http/header.rb | ||
|---|---|---|
| 
         @body = nil 
   | 
||
| 
         @body_stream = nil 
   | 
||
| 
         @form_option = formopt 
   | 
||
| 
         case enctype 
   | 
||
| 
         when /\Aapplication\/x-www-form-urlencoded\z/i, 
   | 
||
| 
           /\Amultipart\/form-data\z/i 
   | 
||
| 
         case enctype.downcase 
   | 
||
| 
         when 'application/x-www-form-urlencoded', 'multipart/form-data' 
   | 
||
| 
           self.content_type = enctype 
   | 
||
| 
         else 
   | 
||
| 
           raise ArgumentError, "invalid enctype: #{enctype}" 
   | 
||