ChannelStatus: Send headers.

master
Valentin Lorentz 2013-05-31 17:37:04 +02:00
parent 3e5486d9aa
commit f02da83286
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ class ChannelStatusCallback(httpserver.SupyHTTPServerCallback):
channels.sort()
self.wfile.write(template % {'channels': ('\n'.join(channels))})
elif len(parts) == 2:
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers()
(channel, network) = urllib.unquote(parts[0]).split('@')
if not ircutils.isChannel(channel):
self._invalidChannel()