Don't overwrite the output variable
This commit is contained in:
parent
c4d3e6b467
commit
6508ef29a1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue