Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rfc6266
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
rfc6266
Commits
9fd634fa
Commit
9fd634fa
authored
Apr 08, 2012
by
Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minimal logging. LEPL has more.
parent
d74dff4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
rfc6266.py
+4
-0
No files found.
rfc6266.py
View file @
9fd634fa
...
@@ -17,6 +17,7 @@ from urllib import quote, unquote
...
@@ -17,6 +17,7 @@ from urllib import quote, unquote
from
urlparse
import
urlsplit
from
urlparse
import
urlsplit
from
string
import
hexdigits
,
ascii_letters
,
digits
from
string
import
hexdigits
,
ascii_letters
,
digits
import
logging
import
posixpath
import
posixpath
import
os.path
import
os.path
import
re
import
re
...
@@ -164,6 +165,9 @@ def parse_headers(content_disposition, location=None):
...
@@ -164,6 +165,9 @@ def parse_headers(content_disposition, location=None):
"""Build a ContentDisposition from header values.
"""Build a ContentDisposition from header values.
"""
"""
logging
.
debug
(
'Content-Disposition
%
r, Location
%
r'
,
content_disposition
,
location
)
if
content_disposition
is
None
:
if
content_disposition
is
None
:
return
ContentDisposition
(
location
=
location
)
return
ContentDisposition
(
location
=
location
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment