diff options
author | default <nobody@localhost> | 2022-10-02 09:27:17 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-02 09:27:17 +0200 |
commit | 849913dc5987997f9db96e23c7acf9c29f9c6d7f (patch) | |
tree | 142b0f98c094b4714b49562f90c952abb3e1f233 /http.c | |
parent | 3161eeb0283f990ba83fbce33d5e3f7f0ad95f24 (diff) |
Use the time functions of xs_time.h.
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,6 +6,7 @@ #include "xs_encdec.h" #include "xs_openssl.h" #include "xs_curl.h" +#include "xs_time.h" #include "snac.h" @@ -27,7 +28,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url, char *k, *v; d_char *response; - date = xs_utc_time("%a, %d %b %Y %H:%M:%S GMT"); + date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT"); { xs *s = xs_replace(url, "https:/" "/", ""); |