Commit 6b082b46 authored by 's avatar

Fixed a typo

parent db8f5d13
......@@ -140,8 +140,9 @@ class ZServerHTTPResponse(HTTPResponse):
c='text/plain'
self.setHeader('content-type',c)
else:
isHTML = string.split(headers.get('content_type', ''),
isHTML = string.split(headers.get('content-type', ''),
';')[0] == 'text/html'
if isHTML and end_of_header_search(self.body) < 0:
lhtml=html_search(body)
if lhtml >= 0:
......
......@@ -140,8 +140,9 @@ class ZServerHTTPResponse(HTTPResponse):
c='text/plain'
self.setHeader('content-type',c)
else:
isHTML = string.split(headers.get('content_type', ''),
isHTML = string.split(headers.get('content-type', ''),
';')[0] == 'text/html'
if isHTML and end_of_header_search(self.body) < 0:
lhtml=html_search(body)
if lhtml >= 0:
......
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