Skip to content

Commit

Permalink
fix for handling redirects from viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jan 4, 2017
1 parent 5b4ee6f commit b9375ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clam/clamservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,8 @@ def getoutputfile(project, filename, credentials=None): #pylint: disable=too-man
viewer = v
if viewer:
output = viewer.view(outputfile, **flask.request.values)
if isinstance(output, flask.Response):
print("TYPE", type(output),file=sys.stderr)
if isinstance(output, (flask.Response, werkzeug.wrappers.Response)):
return output
else:
return withheaders(flask.Response( (line for line in output ) , 200), viewer.mimetype) #streaming output
Expand Down

0 comments on commit b9375ac

Please sign in to comment.