Kong / unirest-php

Unirest in PHP: Simplified, lightweight HTTP client library.
http://unirest.io/php
MIT License
1.28k stars 328 forks source link

Unexpected behavior when query parameter has no value #126

Open 0x9be00ff1 opened 7 years ago

0x9be00ff1 commented 7 years ago

Unirest\Request::get('http://example.com/path?a')

Expecting request url: http://example.com/path?a

Actual request url: http://example.com/path?a=

the request url changed after calling Unirest\Request::encodeUrl

but the URI RFC doesn't mandate a format for the query string.