Fossil SCM

Send the HOST header parameter with /xfer requests.

drh 2007-07-30 18:57 trunk
Commit 211c476d2368d6244d3b4376d944f0b081f69e12
1 file changed +1
+1
--- src/http.c
+++ src/http.c
@@ -202,10 +202,11 @@
202202
zSep = "";
203203
}else{
204204
zSep = "/";
205205
}
206206
blob_appendf(&hdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
207
+ blob_appendf(&hdr, "Host: %s:%d\r\n", g.urlName, g.urlPort);
207208
if( g.fHttpTrace ){
208209
blob_appendf(&hdr, "Content-Type: application/x-fossil-debug\r\n");
209210
}else{
210211
blob_appendf(&hdr, "Content-Type: application/x-fossil\r\n");
211212
}
212213
--- src/http.c
+++ src/http.c
@@ -202,10 +202,11 @@
202 zSep = "";
203 }else{
204 zSep = "/";
205 }
206 blob_appendf(&hdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
 
207 if( g.fHttpTrace ){
208 blob_appendf(&hdr, "Content-Type: application/x-fossil-debug\r\n");
209 }else{
210 blob_appendf(&hdr, "Content-Type: application/x-fossil\r\n");
211 }
212
--- src/http.c
+++ src/http.c
@@ -202,10 +202,11 @@
202 zSep = "";
203 }else{
204 zSep = "/";
205 }
206 blob_appendf(&hdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
207 blob_appendf(&hdr, "Host: %s:%d\r\n", g.urlName, g.urlPort);
208 if( g.fHttpTrace ){
209 blob_appendf(&hdr, "Content-Type: application/x-fossil-debug\r\n");
210 }else{
211 blob_appendf(&hdr, "Content-Type: application/x-fossil\r\n");
212 }
213

Keyboard Shortcuts

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