Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstate CloudFlare support + custom protocol
- Reinstating custom support for CF-VISITOR CloudFlare header + options[:protocol] - Fixing failing tests Instead of passing in `X-Forwarded-Proto` to the Rack env, we can now safely rely on `HTTP_` env variables which are automatically set. Per https://github.com/rack/rack/blob/master/SPEC.rdoc#the-environment-: HTTP_ Variables: Variables corresponding to the client-supplied HTTP request headers (i.e., variables whose names begin with HTTP_). The presence or absence of these variables should correspond with the presence or absence of the appropriate HTTP header in the request. See RFC3875 section 4.1.18 for specific behavior.
- Loading branch information