Project

General

Profile

Feature #17111 ยป patch-1.diff

tonytonyjan (Weihang Jian), 08/10/2020 04:04 AM

View differences:

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}"
    (1-1/1)