REQUEST_URI was introduced by #1419: 7162f43
Currently, Werkzeug strips the query string. While REQUEST_URI is not a standard variable, I believe the consensus is to include the query string. According to #766 (comment) that should have be the case for Werkzeug too.
That applies to RAW_URI too.
It’s an edge case, but ideally empty query strings like in /? should be preserved too and not simplified to /.
REQUEST_URI was introduced by #1419: 7162f43
Currently, Werkzeug strips the query string. While REQUEST_URI is not a standard variable, I believe the consensus is to include the query string. According to #766 (comment) that should have be the case for Werkzeug too.
That applies to RAW_URI too.
It’s an edge case, but ideally empty query strings like in
/?should be preserved too and not simplified to/.