From d04c004c09ce929388abb086b261ea620cf2bc62 Mon Sep 17 00:00:00 2001 From: vsoch Date: Sun, 18 Oct 2020 14:34:29 -0600 Subject: [PATCH] allow for blob url to end with slash Signed-off-by: vsoch --- django_oci/urls.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django_oci/urls.py b/django_oci/urls.py index 4ed82f2..faed1bb 100644 --- a/django_oci/urls.py +++ b/django_oci/urls.py @@ -59,11 +59,17 @@ views.BlobUpload.as_view(), name="blob_upload", ), + # Listed twice, once with and once without trailing slash path( "%s//blobs/upload/" % settings.URL_PREFIX, views.BlobUpload.as_view(), name="blob_upload", ), + path( + "%s//blobs/upload" % settings.URL_PREFIX, + views.BlobUpload.as_view(), + name="blob_upload", + ), # Listed twice, once with and once without trailing slash path( "%s//blobs/" % settings.URL_PREFIX,