aboutsummaryrefslogtreecommitdiff
path: root/license_protected_downloads/api/v3.py
diff options
context:
space:
mode:
Diffstat (limited to 'license_protected_downloads/api/v3.py')
-rw-r--r--license_protected_downloads/api/v3.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/license_protected_downloads/api/v3.py b/license_protected_downloads/api/v3.py
index 9ef6470..37b8a1a 100644
--- a/license_protected_downloads/api/v3.py
+++ b/license_protected_downloads/api/v3.py
@@ -1,5 +1,4 @@
import os
-import urllib
from django.conf import settings
from django.http import HttpResponse
@@ -28,7 +27,7 @@ class PublishResource(v2.PublishResource):
if not b:
raise HttpResponseError('S3 is not enabled', 403)
- path = urllib.pathname2url(self.path)
+ path = S3Artifact.pathname2url(self.path)
k = b.new_key(settings.S3_PREFIX_PATH + path)
if k.exists():
APILog.mark(self.request, 'FILE_OVERWRITE_DENIED')