ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

Prevent nil headers from passing to Net::HTTP #6

Closed rykov closed 12 years ago

rykov commented 12 years ago

Net::HTTP#initialize_http_header crashes when you try to create a nil-valued header. An upstream middleware (like Rack::Cache) tends to send those values.

This patch prevents those headers from passing through.

ncr commented 12 years ago

Thank you!

rykov commented 12 years ago

No problem. Do you mind pushing this as a new gem version?

ncr commented 12 years ago

not at all. having a nasty case of cold atm. will cut a new gem tonight or tomorrow.

rykov commented 12 years ago

Thanks!