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:
......@@ -257,4 +257,4 @@ class header_scanning_producer:
class exit_producer:
def more(self):
# perhaps there could be a more graceful shutdown.
asyncore.close_all()
\ No newline at end of file
asyncore.close_all()
......@@ -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:
......@@ -257,4 +257,4 @@ class header_scanning_producer:
class exit_producer:
def more(self):
# perhaps there could be a more graceful shutdown.
asyncore.close_all()
\ No newline at end of file
asyncore.close_all()
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