Fossil SCM
Send the HOST header parameter with /xfer requests.
Commit
211c476d2368d6244d3b4376d944f0b081f69e12
Parent
bfe6e64f94a6407…
1 file changed
+1
+1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -202,10 +202,11 @@ | ||
| 202 | 202 | zSep = ""; |
| 203 | 203 | }else{ |
| 204 | 204 | zSep = "/"; |
| 205 | 205 | } |
| 206 | 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); | |
| 207 | 208 | if( g.fHttpTrace ){ |
| 208 | 209 | blob_appendf(&hdr, "Content-Type: application/x-fossil-debug\r\n"); |
| 209 | 210 | }else{ |
| 210 | 211 | blob_appendf(&hdr, "Content-Type: application/x-fossil\r\n"); |
| 211 | 212 | } |
| 212 | 213 |
| --- 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 |