shithub: opusfile

Download patch

ref: f310b9ef01991b1920ece7a075e95b7fcb8bc443
parent: 06a191efabc2334afca0b4b24ef6e53d5ba108ec
author: Timothy B. Terriberry <[email protected]>
date: Fri Aug 23 09:24:36 EDT 2013

Fix backwards HTTP Server header test.

This was treating every unknown header as a Server header.
Good thing this was last!
The only damage was that we might have enabled pipelining even on
 known-bad servers.

--- a/src/http.c
+++ b/src/http.c
@@ -2378,7 +2378,7 @@
           if(OP_UNLIKELY(ret<0))return ret;
           pipeline-=ret;
         }
-        else if(strcmp(header,"server")){
+        else if(strcmp(header,"server")==0){
           /*If we got a Server response header, and it wasn't from a known-bad
              server, enable pipelining, as long as it's at least HTTP/1.1.
             According to RFC 2145, the server is supposed to respond with the