summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-02 09:27:17 +0200
committerdefault <nobody@localhost>2022-10-02 09:27:17 +0200
commit849913dc5987997f9db96e23c7acf9c29f9c6d7f (patch)
tree142b0f98c094b4714b49562f90c952abb3e1f233 /http.c
parent3161eeb0283f990ba83fbce33d5e3f7f0ad95f24 (diff)
Use the time functions of xs_time.h.
Diffstat (limited to 'http.c')
-rw-r--r--http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/http.c b/http.c
index a58aaf4..915d5f3 100644
--- a/http.c
+++ b/http.c
@@ -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:/" "/", "");