Commit 583627d0 authored by Amos Latteier's avatar Amos Latteier

fixed stupid HTTP header processing bug.

parent 3037ef1e
......@@ -237,7 +237,7 @@ class header_scanning_producer:
return self.pipe.ready()
elif self.pipe.ready():
self.buffer=self.buffer+self.pipe.read()
if string.find(self.buffer,"\n\n"):
if string.find(self.buffer,"\n\n") != -1:
[headers,html]=string.split(self.buffer,"\n\n",1)
headers=string.split(headers,"\n")
for line in headers:
......
......@@ -237,7 +237,7 @@ class header_scanning_producer:
return self.pipe.ready()
elif self.pipe.ready():
self.buffer=self.buffer+self.pipe.read()
if string.find(self.buffer,"\n\n"):
if string.find(self.buffer,"\n\n") != -1:
[headers,html]=string.split(self.buffer,"\n\n",1)
headers=string.split(headers,"\n")
for line in headers:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment