Add attribute check for #31 and remove version pin

This commit is contained in:
Andrew Godwin 2016-08-28 11:14:13 -07:00
parent c8883eea50
commit 0b37e80614
2 changed files with 4 additions and 4 deletions

View File

@ -110,9 +110,9 @@ 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()
# Resume the producer so we keep getting data, if it's available as a method
if hasattr(self.channel, "resumeProducing"):
self.channel.resumeProducing()
# Boring old HTTP.
else:

View File

@ -22,7 +22,7 @@ setup(
include_package_data=True,
install_requires=[
'asgiref>=0.13',
'twisted>=15.5,<16.3',
'twisted>=16.0',
'autobahn>=0.12',
],
entry_points={'console_scripts': [