Ticket #298: deprecated-filetransfer.patch
| File deprecated-filetransfer.patch, 0.8 kB (added by exarkun, 2 years ago) |
|---|
-
coherence/upnp/core/utils.py
old new 13 13 from coherence import SERVER_ID 14 14 15 15 16 import twisted 16 17 from twisted.web import server, http, static 17 18 from twisted.web import client, error 18 19 from twisted.web import proxy, resource, server … … 728 729 # and make sure the connection doesn't get closed 729 730 return server.NOT_DONE_YET 730 731 732 if twisted.version.major >= 9: 733 # Since 9.0, twisted.web.static.File has supported byte range requests. 734 # Prefer that, if it is available. 735 StaticFile = static.File 736 737 731 738 class BufferFile(static.File): 732 739 """ taken from twisted.web.static and modified 733 740 accordingly to the patch by John-Mark Gurney
