Commit 22467c9
committed
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.1 parent 27b1ea5 commit 22467c9
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
184 | 189 | | |
185 | 190 | | |
186 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
187 | 194 | | |
188 | 195 | | |
189 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments