Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
31ba0635
Commit
31ba0635
authored
May 23, 2018
by
Julian Rother
Browse files
Fixed
#347
parent
bfcd82ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
31ba0635
...
...
@@ -14,6 +14,7 @@ import math
import
locale
import
base64
import
json
import
urllib
locale
.
setlocale
(
locale
.
LC_ALL
,
'de_DE.utf8'
)
...
...
@@ -369,7 +370,7 @@ def logout():
def
auth
():
# For use with nginx auth_request
if
'X-Original-Uri'
not
in
request
.
headers
:
return
'Internal Server Error'
,
500
url
=
request
.
headers
[
'X-Original-Uri'
].
lstrip
(
config
[
'VIDEOPREFIX'
])
url
=
urllib
.
parse
.
unquote
(
request
.
headers
[
'X-Original-Uri'
]
)
.
lstrip
(
config
[
'VIDEOPREFIX'
])
if
request
.
cookies
.
get
(
'tracking'
,
''
)
and
request
.
cookies
[
'tracking'
].
isdigit
():
cookie
=
int
(
request
.
cookies
[
'tracking'
])
else
:
...
...
Write
Preview
Supports
Markdown
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