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:
parent
2557777c39
commit
6f82ea19de
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user