fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.27k stars 96 forks source link

Now if X-Forwarded-Proto header is received, we use it to set a scheme for the env #79

Closed svetlyak40wt closed 5 years ago

svetlyak40wt commented 5 years ago

The X-Forwarded-Proto header is a de-facto standard header for identifying the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.

More details is at the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto

This pull should be merged with it's test from this pull request:

https://github.com/fukamachi/clack/pull/156

svetlyak40wt commented 5 years ago

I've made this feature in the Weblocks:

https://github.com/40ants/weblocks/pull/22