Increasing webrick’s URI size when dealing with RequestURITooLarge

I managed to find the file to increase the maximum length in webrick (1.9.2). I changed the hardcoded numbers at lines 246 and 247. You can find the file: ruby-directory/lib/ruby/<version number here>/webrick/httprequest.rb, though i found the file is quite different in ruby 1.8.7.

I was looking for this, and apparently, the only way you can fix it is to change the hardcoded values in webrick. Either change to a different development webserver, or just hack it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s