summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-08-19 18:28:29 +0000
committerGerrit Code Review <review@openstack.org>2014-08-19 18:28:29 +0000
commit8eb8bb0a36f976724b25557e177656ee35df1ed3 (patch)
tree7b4c569fb58d5df84e3f9ce33e6a9ab1978985f8
parent75a329c7f54fc3b06e11dea1b395d5e552ce0230 (diff)
parentd8b3e16c038eac0f3b691ceca88b9bf7a0b631e1 (diff)
downloadswift-8eb8bb0a36f976724b25557e177656ee35df1ed3.tar.gz
Merge "Update tempurl docstring with methods config option"
-rw-r--r--swift/common/middleware/tempurl.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/swift/common/middleware/tempurl.py b/swift/common/middleware/tempurl.py
index 1f10b31ed..8cf6703a7 100644
--- a/swift/common/middleware/tempurl.py
+++ b/swift/common/middleware/tempurl.py
@@ -74,7 +74,7 @@ da39a3ee5e6b4b0d3255bfef95601890afd80709 and expires ends up
temp_url_expires=1323479485
Any alteration of the resource path or query arguments would result
-in 401 Unauthorized. Similary, a PUT where GET was the allowed method
+in 401 Unauthorized. Similarly, a PUT where GET was the allowed method
would 401. HEAD is allowed if GET, PUT, or POST is allowed.
Using this in combination with browser form post translation
@@ -204,8 +204,13 @@ class TempURL(object):
'*' to indicate a prefix match.
Default: x-object-meta-public-*
+ methods
+ A whitespace delimited list of request methods that are
+ allowed to be used with a temporary URL.
+ Default: 'GET HEAD PUT POST DELETE'
+
The proxy logs created for any subrequests made will have swift.source set
- to "FP".
+ to "TU".
:param app: The next WSGI filter or app in the paste.deploy
chain.
@@ -348,7 +353,7 @@ class TempURL(object):
else:
name = basename(env['PATH_INFO'].rstrip('/'))
disposition_value = disposition_format(name)
- # this is probably just paranoia, I couldn't acctually get a
+ # this is probably just paranoia, I couldn't actually get a
# newline into existing_disposition
value = disposition_value.replace('\n', '%0A')
out_headers.append(('Content-Disposition', value))