Skip to content

Instantly share code, notes, and snippets.

@skaes
Created August 12, 2010 15:46
Show Gist options
  • Save skaes/521181 to your computer and use it in GitHub Desktop.
Save skaes/521181 to your computer and use it in GitHub Desktop.
# fix a bug in rack (more a brainfuck actually)
config.to_prepare do
::Rack::Utils::HeaderHash.class_eval <<-_EVA_
def [](k)
super(@names[k] || @names[k.downcase])
end
_EVA_
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment