Fossil SCM

Correctly terminate the 304 replies in the previous check-in.

drh 2020-05-09 21:04 trunk
Commit 9f99257451fb91733d1fefbf71e7850f30995f2ded578b7ab184d16ff331efec
1 file changed +4 -1
+4 -1
--- src/cgi.c
+++ src/cgi.c
@@ -289,11 +289,14 @@
289289
fprintf(g.httpOut, "X-UA-Compatible: IE=edge\r\n");
290290
}else{
291291
assert( rangeEnd==0 );
292292
fprintf(g.httpOut, "Status: %d %s\r\n", iReplyStatus, zReplyStatus);
293293
}
294
- if( iReplyStatus==304 ) goto finish_cgi_reply;
294
+ if( iReplyStatus==304 ){
295
+ fprintf(g.httpOut, "\r\n");
296
+ goto finish_cgi_reply;
297
+ }
295298
if( g.isConst ){
296299
/* isConst means that the reply is guaranteed to be invariant, even
297300
** after configuration changes and/or Fossil binary recompiles. */
298301
fprintf(g.httpOut, "Cache-Control: max-age=31536000\r\n");
299302
}else if( etag_tag()!=0 ){
300303
--- 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

Keyboard Shortcuts

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