Skip to content

Commit e4de677

Browse files
committed
add link to why crow is weird so I have it for future reference
1 parent 70de8d1 commit e4de677

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ server {
5858
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
5959
proxy_set_header Host \$host;
6060
proxy_pass http://localhost:6906/;
61-
# Required to prevent downgrades diring redirects
61+
# Required to prevent downgrades during redirects
62+
# This is caused by an oddity in how Crow handles redirects. See
63+
# https://github.com/CrowCpp/Crow/blob/ad337a8a868d1d6bc61e9803fc82f36c61f706de/include/crow/http_connection.h#L257
64+
# for the code in question
6265
proxy_redirect http://$host/ https://$host/;
6366
proxy_http_version 1.1;
6467
proxy_set_header Upgrade \$http_upgrade;

0 commit comments

Comments
 (0)