hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b7cb1f622c4c138408369f0f4ef4bef868a5c717
parent f5f85070682d40617b3679cf98e4e8f349cfd83d
Author: Tom Lebreux <me@tomlebreux.com>
Date:   Mon, 30 May 2022 17:51:32 -0400

net::uri: add ? before query element

Signed-off-by: Tom Lebreux <me@tomlebreux.com>

Diffstat:
Mnet/uri/fmt.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha @@ -37,6 +37,7 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = { }; n += fmt::fprint(out, u.path)?; if (len(u.query) > 0) { + n += fmt::fprint(out, "?")?; n += percent_encode(out, u.query)?; }; if (len(u.fragment) > 0) {