zendframework / zend-diactoros

PSR-7 HTTP Message implementation
BSD 3-Clause "New" or "Revised" License
1.56k stars 152 forks source link

Modify detection of HTTPS #363

Closed heiglandreas closed 5 years ago

heiglandreas commented 5 years ago

This modifies the detection of HTTPS by checking whether the lower-case value of the HTTPS-key of the server variable equals 'on'. Before that checked whether the value did not match 'off' which meant that the nginx-default for non-HTTPS connections (which, according to the documentation is an empty string) did in fact match and returned that the connection is encrypted.

This fixes #362

Provide a narrative description of what you are trying to accomplish: See #362

weierophinney commented 5 years ago

Thanks, @heiglandreas!