Bug #17201 » ruby_2_7_webrick_1_6_1.patch
| lib/webrick/httprequest.rb | ||
|---|---|---|
|
raise HTTPStatus::BadRequest, "bad URI `#{@unparsed_uri}'."
|
||
|
end
|
||
|
if /close/io =~ self["connection"]
|
||
|
if /\Aclose\z/io =~ self["connection"]
|
||
|
@keep_alive = false
|
||
|
elsif /keep-alive/io =~ self["connection"]
|
||
|
elsif /\Akeep-alive\z/io =~ self["connection"]
|
||
|
@keep_alive = true
|
||
|
elsif @http_version < "1.1"
|
||
|
@keep_alive = false
|
||
| ... | ... | |
|
return unless socket
|
||
|
if tc = self['transfer-encoding']
|
||
|
case tc
|
||
|
when /chunked/io then read_chunked(socket, block)
|
||
|
when /\Achunked\z/io then read_chunked(socket, block)
|
||
|
else raise HTTPStatus::NotImplemented, "Transfer-Encoding: #{tc}."
|
||
|
end
|
||
|
elsif self['content-length'] || @remaining_size
|
||
| lib/webrick/httpservlet/filehandler.rb | ||
|---|---|---|
|
def service(req, res)
|
||
|
# if this class is mounted on "/" and /~username is requested.
|
||
|
# we're going to override path information before invoking service.
|
||
|
# we're going to override path informations before invoking service.
|
||
|
if defined?(Etc) && @options[:UserDir] && req.script_name.empty?
|
||
|
if %r|^(/~([^/]+))| =~ req.path_info
|
||
|
script_name, user = $1, $2
|
||
| lib/webrick/version.rb | ||
|---|---|---|
|
##
|
||
|
# The WEBrick version
|
||
|
VERSION = "1.6.0"
|
||
|
VERSION = "1.6.1"
|
||
|
end
|
||