Project

General

Profile

Actions

Bug #3991

closed

Webrick doesnt except long URIs RequestURITooLarge

Added by bleevo (Chris Hampson) over 14 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.9
Backport:
[ruby-core:32924]

Description

=begin
If your URI (plus the protocol portions) is longer than 1024 bytes you get an error of RequestURITooLarge

It is valid in the standard to have a URI longer than 1024 bytes.

Specifically this breaks support for OpenID.

Patch is easy.

class httprequest.rb
method read_request_line

change 1024 to something more reasonable.

http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-an-url

I updated mine to 2083 which is the maximum length IE supports
=end

Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29617.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0