Skip to content

Commit

Permalink
Checking format on manifest_proxy view
Browse files Browse the repository at this point in the history
  • Loading branch information
napulen committed Feb 2, 2021
1 parent d71db9b commit 083bd37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/cantusdata/views/manifest_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ class ManifestProxyView(APIView):
renderer_classes = (JSONRenderer,)

def get(self, request, *args, **kwargs):

manifest_url = kwargs["manifest_url"]

format_ = kwargs.get("format", None)
if format_:
manifest_url += f".{format_}"
try:
return StreamingHttpResponse(
requests.get(manifest_url, verify=False, stream=True),
Expand Down

0 comments on commit 083bd37

Please sign in to comment.