Merge pull request #40 from bpeschier/master

Tell Twisted to keep producing data after connection upgrade
This commit is contained in:
Andrew Godwin 2016-08-28 10:52:05 -07:00 committed by GitHub
commit c8883eea50

View File

@ -110,6 +110,10 @@ class WebRequest(http.Request):
logger.debug("Connection %s did not get successful WS handshake.", self.reply_channel)
del self.factory.reply_protocols[self.reply_channel]
self.reply_channel = None
# Resume the producer so we keep getting data
self.channel.resumeProducing()
# Boring old HTTP.
else:
# Sanitize and decode headers, potentially extracting root path