chiark / gitweb /
Don't put '?' on the end of parameterless URLs.
authorSimon Tatham <anakin@pobox.com>
Sun, 31 Dec 2023 15:00:07 +0000 (15:00 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 31 Dec 2023 15:00:07 +0000 (15:00 +0000)
commit6a83f7e1cc1209455f38bd0d1e4395dbab1f8cad
tree52c9e44bc6b36dcd1359b4da713c68b1db676fd6
parentacff7a48733d672e51746912143dc96c960e0545
Don't put '?' on the end of parameterless URLs.

If you call reqwest::Url::parse_with_params and give it an empty
parameter iterator, it still appends '?' to the URL, and then doesn't
put anything after it.

I don't _think_ that actually makes any difference, but it looks ugly.
More to the point, I noticed it while pasting HTTP transcripts to
report a bug in the Mastodon dev setup, and thought I'd better try
again without the spurious '?', in case it did make a difference.
src/client.rs