Fossil SCM

Recognize the HTTPS line in the HTTP header. Ticket [d83227cdda3d786d3743b2]

drh 2010-08-15 19:34 trunk
Commit 3dc62d54d02a560ef2c34f067612f906b9b644a2
1 file changed +2
+2
--- src/cgi.c
+++ src/cgi.c
@@ -1138,10 +1138,12 @@
11381138
cgi_setenv("HTTP_COOKIE", zVal);
11391139
}else if( strcmp(zFieldName,"if-none-match:")==0 ){
11401140
cgi_setenv("HTTP_IF_NONE_MATCH", zVal);
11411141
}else if( strcmp(zFieldName,"if-modified-since:")==0 ){
11421142
cgi_setenv("HTTP_IF_MODIFIED_SINCE", zVal);
1143
+ }else if( strcmp(zFieldName,"https:")==0 ){
1144
+ cgi_setenv("HTTPS", zVal);
11431145
}
11441146
}
11451147
11461148
cgi_init();
11471149
}
11481150
--- src/cgi.c
+++ src/cgi.c
@@ -1138,10 +1138,12 @@
1138 cgi_setenv("HTTP_COOKIE", zVal);
1139 }else if( strcmp(zFieldName,"if-none-match:")==0 ){
1140 cgi_setenv("HTTP_IF_NONE_MATCH", zVal);
1141 }else if( strcmp(zFieldName,"if-modified-since:")==0 ){
1142 cgi_setenv("HTTP_IF_MODIFIED_SINCE", zVal);
 
 
1143 }
1144 }
1145
1146 cgi_init();
1147 }
1148
--- src/cgi.c
+++ src/cgi.c
@@ -1138,10 +1138,12 @@
1138 cgi_setenv("HTTP_COOKIE", zVal);
1139 }else if( strcmp(zFieldName,"if-none-match:")==0 ){
1140 cgi_setenv("HTTP_IF_NONE_MATCH", zVal);
1141 }else if( strcmp(zFieldName,"if-modified-since:")==0 ){
1142 cgi_setenv("HTTP_IF_MODIFIED_SINCE", zVal);
1143 }else if( strcmp(zFieldName,"https:")==0 ){
1144 cgi_setenv("HTTPS", zVal);
1145 }
1146 }
1147
1148 cgi_init();
1149 }
1150

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button