Fossil SCM
Correctly terminate the 304 replies in the previous check-in.
Commit
9f99257451fb91733d1fefbf71e7850f30995f2ded578b7ab184d16ff331efec
Parent
6624350b0e30566…
1 file changed
+4
-1
+4
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -289,11 +289,14 @@ | ||
| 289 | 289 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 290 | 290 | }else{ |
| 291 | 291 | assert( rangeEnd==0 ); |
| 292 | 292 | fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus); |
| 293 | 293 | } |
| 294 | - if( iReplyStatus==304 ) goto finish_cgi_reply; | |
| 294 | + if( iReplyStatus==304 ){ | |
| 295 | + fprintf(g.httpOut, "\r\n"); | |
| 296 | + goto finish_cgi_reply; | |
| 297 | + } | |
| 295 | 298 | if( g.isConst ){ |
| 296 | 299 | /* isConst means that the reply is guaranteed to be invariant, even |
| 297 | 300 | ** after configuration changes and/or Fossil binary recompiles. */ |
| 298 | 301 | fprintf(g.httpOut, "Cache-Control: max-age=31536000\r\n"); |
| 299 | 302 | }else if( etag_tag()!=0 ){ |
| 300 | 303 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -289,11 +289,14 @@ | |
| 289 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 290 | }else{ |
| 291 | assert( rangeEnd==0 ); |
| 292 | fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus); |
| 293 | } |
| 294 | if( iReplyStatus==304 ) goto finish_cgi_reply; |
| 295 | if( g.isConst ){ |
| 296 | /* isConst means that the reply is guaranteed to be invariant, even |
| 297 | ** after configuration changes and/or Fossil binary recompiles. */ |
| 298 | fprintf(g.httpOut, "Cache-Control: max-age=31536000\r\n"); |
| 299 | }else if( etag_tag()!=0 ){ |
| 300 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -289,11 +289,14 @@ | |
| 289 | fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n"); |
| 290 | }else{ |
| 291 | assert( rangeEnd==0 ); |
| 292 | fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus); |
| 293 | } |
| 294 | if( iReplyStatus==304 ){ |
| 295 | fprintf(g.httpOut, "\r\n"); |
| 296 | goto finish_cgi_reply; |
| 297 | } |
| 298 | if( g.isConst ){ |
| 299 | /* isConst means that the reply is guaranteed to be invariant, even |
| 300 | ** after configuration changes and/or Fossil binary recompiles. */ |
| 301 | fprintf(g.httpOut, "Cache-Control: max-age=31536000\r\n"); |
| 302 | }else if( etag_tag()!=0 ){ |
| 303 |