Closed mathieulongtin closed 6 years ago
The latest NSQ 1.0 servers don't put all the JSON inside a "data" element. So if "data" is not there, assume the whole json is the response.
Before: {"data":{actual answer},...}. It had other field like http exit code, which you can get from the response header. After: {actual answer]
{"data":{actual answer},...}
{actual answer]
This fix is backward compatible
LGTM. If you include a version bump, I can publish this to pypi as well
Done. Thanks.
Released on pypi
Thanks!
The latest NSQ 1.0 servers don't put all the JSON inside a "data" element. So if "data" is not there, assume the whole json is the response.
Before:
{"data":{actual answer},...}
. It had other field like http exit code, which you can get from the response header. After:{actual answer]
This fix is backward compatible