request parsing special parameters
liangxiaojian0210 opened this issue · 1 comments
liangxiaojian0210 commented
I want to know when i send "http://127.0.0.1:5000/?name=xiaojiann+&age=16" , why request.query_string can get b'name=xiaojiann+' but request.arg get ImmutableMultiDict([('name', 'xiaojiann ')]), request.args use blank space replace +
I try flask version 2.0.3 , 3.0.3 and python version 3.6 , 3.10
davidism commented
Because that's how query string parsing works. You need to percent encode characters with special meanings.