rack-reverse-proxy
rack-reverse-proxy copied to clipboard
Un-underscore header names provided by Rack
This fixes two problems:
- This will now properly convert underscored header names to their dashed equivalent. Custom headers like
Content-MD5turns intoHTTP_CONTENT_MD5in Rack, so converting back fromCONTENT_MD5toCONTENT-MD5is required. - Sometimes Rack's header values are
nil. The one I've encountered so far using Rails in development isOrigin. This will only set the header if the value is non-nil.
You can do a release for this?