pallets/flask

request parsing special parameters

liangxiaojian0210 opened this issue · 1 comments

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 +

image

I try flask version 2.0.3 , 3.0.3 and python version 3.6 , 3.10

Because that's how query string parsing works. You need to percent encode characters with special meanings.