-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Accel-Redirect with non-ascii filenames #1448
Comments
You provide a URI in
|
@fle does the comment above help you or is this still an issue? |
I had this problem and quoting the complete header value worker for me |
Filepath can contains non-ASCII characters, so we need to convert to a valid URI before setting it as X-Accel-Redirec NGINX header because only ASCII characters are supported. References, * https://docs.djangoproject.com/en/1.11/ref/unicode/#uri-and-iri-handling * benoitc/gunicorn#1448
Filepath can contains non-ASCII characters, so we need to convert to a valid URI before setting it as X-Accel-Redirec NGINX header because only ASCII characters are supported. References, * https://docs.djangoproject.com/en/1.11/ref/unicode/#uri-and-iri-handling * benoitc/gunicorn#1448
Filepath can contains non-ASCII characters, so we need to convert to a valid URI before setting it as X-Accel-Redirec NGINX header because only ASCII characters are supported. References, * https://docs.djangoproject.com/en/1.11/ref/unicode/#uri-and-iri-handling * benoitc/gunicorn#1448
Filepath can contains non-ASCII characters, so we need to convert to a valid URI before setting it as X-Accel-Redirec NGINX header because only ASCII characters are supported. References, * https://docs.djangoproject.com/en/1.11/ref/unicode/#uri-and-iri-handling * benoitc/gunicorn#1448
Since the 19.4 release and this commit : #1151, it seems like using
X-Accel-Redirect
with a non-ascii URI is not possible anymore.Though RFC 7230 says that http headers should be encoded in USASCII, shouldn't have we an exception for this kind of header? Without it,
X-Accel-Redirect
function is not available since we have files with a non-ascii filename.Furthermore, it's curious that nginx still has a
X-Accel-Charset utf-8
by default.Thanks for reading this,
The text was updated successfully, but these errors were encountered: