Update tempurl docstring with methods config option
Adds a description of the methods config option to the docstring. Also fixes description of swift.source value and a couple of other typos. Change-Id: If3489087df020536ff663ffe4e249c300ea2d506
This commit is contained in:
1 changed files with 8 additions and 3 deletions
@@ -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))
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.