Skip to content

Commit

Permalink
allow for blob url to end with slash
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Oct 18, 2020
1 parent a4eecf8 commit d04c004
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions django_oci/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,17 @@
views.BlobUpload.as_view(),
name="blob_upload",
),
# Listed twice, once with and once without trailing slash
path(
"%s/<path:session_id>/blobs/upload/" % settings.URL_PREFIX,
views.BlobUpload.as_view(),
name="blob_upload",
),
path(
"%s/<path:session_id>/blobs/upload" % settings.URL_PREFIX,
views.BlobUpload.as_view(),
name="blob_upload",
),
# Listed twice, once with and once without trailing slash
path(
"%s/<path:name>/blobs/<digest>" % settings.URL_PREFIX,
Expand Down

0 comments on commit d04c004

Please sign in to comment.