1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 05:04:00 +00:00

Fixed bug in addversion.json with old Twisted versions. Closes #293

This commit is contained in:
Pablo Hoffman 2010-11-25 12:12:42 -02:00
parent 2557777c39
commit 6f82ea19de

View File

@ -34,7 +34,7 @@ class JsonRpcResource(JsonResource):
return self.get_target()
def render_POST(self, txrequest):
reqstr = txrequest.content.read()
reqstr = txrequest.content.getvalue()
target = self.get_target()
return jsonrpc_server_call(target, reqstr, self.json_decoder)