Skip to content

Instantly share code, notes, and snippets.

View mattdees's full-sized avatar

matt dees mattdees

View GitHub Profile
@jmazzi
jmazzi / net_http_hacked.rb
Created March 15, 2011 15:20
Discard bad HTTP headers in Net::HTTP.
# Based on 1.9.2. Works in 1.8.7 too, though
module Net
class HTTP
@skip_bad_headers = false
class << self
def skip_bad_headers
@skip_bad_headers
end