Skip to content

Commit

Permalink
Configure Webrick to allow long request_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
janwerkhoven committed Feb 6, 2025
1 parent ba8f6f2 commit bcd461a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/webrick.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To resolve requests being blocked
# 2024-11-19 01:07:23 +0000: HTTP parse error, malformed request (127.0.0.1): #<Puma::HttpParserError: HTTP element REQUEST_PATH is longer than the 2048 allowed length (was 2956)>

if defined?(WEBrick::HTTPRequest)
WEBrick::HTTPRequest.const_set("MAX_URI_LENGTH", 10240)
end

0 comments on commit bcd461a

Please sign in to comment.