Bläddra i källkod

webserver: 416 errors aren't closing connections

Breaking here lets our handler die which a client will fix by
reconnecting… but that eats time needlessly and is simple the wrong
handling, too.

Git-Dch: Ignore
David Kalnischkies 10 år sedan
förälder
incheckning
c1e7b36400
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      test/interactive-helper/aptwebserver.cc

+ 1 - 1
test/interactive-helper/aptwebserver.cc

@@ -760,7 +760,7 @@ static void * handleClient(void * voidclient)				/*{{{*/
 			   headers.push_back(contentrange.str());
 			   headers.push_back(contentrange.str());
 			}
 			}
 			sendError(client, 416, *m, sendContent, "", headers);
 			sendError(client, 416, *m, sendContent, "", headers);
-			break;
+			continue;
 		     }
 		     }
 		  }
 		  }
 	       }
 	       }