Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
090ca11d
Commit
090ca11d
authored
Aug 12, 2018
by
Jelle van der Waa
🚧
Browse files
main: remove unused format_http_headers from utils.py
parent
7640c818
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/utils.py
View file @
090ca11d
...
...
@@ -60,15 +60,6 @@ def empty_response():
return
empty
def
format_http_headers
(
request
):
headers
=
sorted
((
k
,
v
)
for
k
,
v
in
request
.
META
.
items
()
if
k
.
startswith
(
'HTTP_'
))
data
=
[]
for
k
,
v
in
headers
:
data
.
extend
([
k
[
5
:].
replace
(
'_'
,
'-'
).
title
(),
': '
,
v
,
'
\n
'
])
return
''
.
join
(
data
)
# utility to make a pair of django choices
make_choice
=
lambda
l
:
[(
str
(
m
),
str
(
m
))
for
m
in
l
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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