summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGravatar default2022-10-02 09:27:17 +0200
committerGravatar default2022-10-02 09:27:17 +0200
commit849913dc5987997f9db96e23c7acf9c29f9c6d7f (patch)
tree142b0f98c094b4714b49562f90c952abb3e1f233 /http.c
parentBackport from xs. (diff)
downloadpenes-snac2-849913dc5987997f9db96e23c7acf9c29f9c6d7f.tar.gz
penes-snac2-849913dc5987997f9db96e23c7acf9c29f9c6d7f.tar.xz
penes-snac2-849913dc5987997f9db96e23c7acf9c29f9c6d7f.zip
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 @@
6#include "xs_encdec.h" 6#include "xs_encdec.h"
7#include "xs_openssl.h" 7#include "xs_openssl.h"
8#include "xs_curl.h" 8#include "xs_curl.h"
9#include "xs_time.h"
9 10
10#include "snac.h" 11#include "snac.h"
11 12
@@ -27,7 +28,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url,
27 char *k, *v; 28 char *k, *v;
28 d_char *response; 29 d_char *response;
29 30
30 date = xs_utc_time("%a, %d %b %Y %H:%M:%S GMT"); 31 date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT");
31 32
32 { 33 {
33 xs *s = xs_replace(url, "https:/" "/", ""); 34 xs *s = xs_replace(url, "https:/" "/", "");