Skip to content

Commit 7b41b22

Browse files
authored
Merge pull request #6790 from readthedocs/strip-proxito-header-args
Remove GET args from the path passed via proxito header
2 parents 2b47c40 + d97fefc commit 7b41b22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/proxito/views/mixins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _serve_docs_nginx(self, request, final_project, version_slug, path, download
124124
response['X-RTD-Domain'] = request.get_host()
125125
response['X-RTD-Project'] = final_project.slug
126126
response['X-RTD-Version'] = version_slug
127-
response['X-RTD-Path'] = path
127+
# Needed to strip any GET args, etc.
128+
response['X-RTD-Path'] = urlparse(path).path
128129
if hasattr(request, 'rtdheader'):
129130
response['X-RTD-Version-Method'] = 'rtdheader'
130131
if hasattr(request, 'subdomain'):

0 commit comments

Comments
 (0)