diff options
| author | 2023-05-02 06:49:00 +0200 | |
|---|---|---|
| committer | 2023-05-02 06:49:00 +0200 | |
| commit | be5f08e6c3d605fb2beb1fdd1c2f10818b1e1812 (patch) | |
| tree | b2d269df739a5283d3489f1996065a57a16a4edc /http.c | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-be5f08e6c3d605fb2beb1fdd1c2f10818b1e1812.tar.gz penes-snac2-be5f08e6c3d605fb2beb1fdd1c2f10818b1e1812.tar.xz penes-snac2-be5f08e6c3d605fb2beb1fdd1c2f10818b1e1812.zip | |
Use xs_replace_n() where it suits.
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -33,7 +33,7 @@ xs_dict *http_signed_request_raw(const char *keyid, const char *seckey, | |||
| 33 | date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT"); | 33 | date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT"); |
| 34 | 34 | ||
| 35 | { | 35 | { |
| 36 | xs *s = xs_replace(url, "https:/" "/", ""); | 36 | xs *s = xs_replace_n(url, "https:/" "/", "", 1); |
| 37 | l1 = xs_split_n(s, "/", 1); | 37 | l1 = xs_split_n(s, "/", 1); |
| 38 | } | 38 | } |
| 39 | 39 | ||