summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-02 06:49:00 +0200
committerdefault <nobody@localhost>2023-05-02 06:49:00 +0200
commitbe5f08e6c3d605fb2beb1fdd1c2f10818b1e1812 (patch)
treeb2d269df739a5283d3489f1996065a57a16a4edc /http.c
parent29815a38736666e2226454d96ba444843853dca5 (diff)
Use xs_replace_n() where it suits.
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index ae46001..58d188c 100644
--- a/http.c
+++ b/http.c
@@ -33,7 +33,7 @@ xs_dict *http_signed_request_raw(const char *keyid, const char *seckey,
date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT");
{
- xs *s = xs_replace(url, "https:/" "/", "");
+ xs *s = xs_replace_n(url, "https:/" "/", "", 1);
l1 = xs_split_n(s, "/", 1);
}