Fossil SCM
Change the HTTP reply status for range requests from "206 OK" to "206 Partial Content".
Commit
8a1e1c9096793aab3de08dc66e5ccef892c792bdaf3f9a94afd1db823ac96b14
Parent
1bf8df8ad2e1993…
1 file changed
+1
+1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -279,10 +279,11 @@ | ||
| 279 | 279 | if( rangeEnd>0 |
| 280 | 280 | && iReplyStatus==200 |
| 281 | 281 | && fossil_strcmp(P("REQUEST_METHOD"),"GET")==0 |
| 282 | 282 | ){ |
| 283 | 283 | iReplyStatus = 206; |
| 284 | + zReplyStatus = "Partial Content"; | |
| 284 | 285 | } |
| 285 | 286 | fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus); |
| 286 | 287 | fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0))); |
| 287 | 288 | fprintf(g.httpOut, "Connection: close\r\n"); |
| 288 | 289 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 289 | 290 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -279,10 +279,11 @@ | |
| 279 | if( rangeEnd>0 |
| 280 | && iReplyStatus==200 |
| 281 | && fossil_strcmp(P("REQUEST_METHOD"),"GET")==0 |
| 282 | ){ |
| 283 | iReplyStatus = 206; |
| 284 | } |
| 285 | fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus); |
| 286 | fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0))); |
| 287 | fprintf(g.httpOut, "Connection: close\r\n"); |
| 288 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 289 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -279,10 +279,11 @@ | |
| 279 | if( rangeEnd>0 |
| 280 | && iReplyStatus==200 |
| 281 | && fossil_strcmp(P("REQUEST_METHOD"),"GET")==0 |
| 282 | ){ |
| 283 | iReplyStatus = 206; |
| 284 | zReplyStatus = "Partial Content"; |
| 285 | } |
| 286 | fprintf(g.httpOut, "HTTP/1.0 %d %s\r\n", iReplyStatus, zReplyStatus); |
| 287 | fprintf(g.httpOut, "Date: %s\r\n", cgi_rfc822_datestamp(time(0))); |
| 288 | fprintf(g.httpOut, "Connection: close\r\n"); |
| 289 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 290 |