njs: get raw requestURI or full querystring
Sergey A. Osokin
osa at freebsd.org.ru
Wed Apr 28 12:17:09 UTC 2021
On Wed, Apr 28, 2021 at 07:45:37AM +0200, Gunter Grodotzki wrote:
> Unfortunately r.args is empty if no key/value pair is given.
Well, the r.args is empty in case of an emptyness of a querystring.
But we have a bit different case when URL contains a query
string with a key, but without a value for that one,
i.e. "https://url.rw/?https%3A%2F%2Flifeofguenter.de".
So, the "https%3A%2F%2Flifeofguenter.de" is the key and its value
is empty.
--
Sergey Osokin
More information about the nginx-devel
mailing list