Don't overwrite the output variable

This commit is contained in:
Fabio Manganiello 2018-07-18 20:23:11 +02:00
parent c4d3e6b467
commit 6508ef29a1

View file

@ -48,10 +48,11 @@ class HttpRequestPlugin(Plugin):
method = getattr(requests, method)
response = method(url, **kwargs)
response.raise_for_status()
output = response.text
if output == 'json': output = response.json()
if output == 'binary': output = response.content
else: output = response.text
return output