Замените «+» пробелом на стороне Nginx для URL-адреса, созданного Python quote_plusPython

Программы на Python
Гость
Замените «+» пробелом на стороне Nginx для URL-адреса, созданного Python quote_plus

Сообщение Гость »


Я пишу код на Python следующим образом:

Код: Выделить всё

from urllib.parse import quote_plus

file_name = quote_plus(filename)
And my final is something like this http://example.com/name+is+oscar
on server my stored with space "name is oscar"
My webserver in , and I want return file when user click on , how to replace "+" with space in ?!
I saw rewrite can help, but I don't know how work with.


Источник: https://stackoverflow.com/questions/781 ... quote-plus

Вернуться в «Python»