diff options
| author | 2022-10-02 09:27:17 +0200 | |
|---|---|---|
| committer | 2022-10-02 09:27:17 +0200 | |
| commit | 849913dc5987997f9db96e23c7acf9c29f9c6d7f (patch) | |
| tree | 142b0f98c094b4714b49562f90c952abb3e1f233 /http.c | |
| parent | Backport from xs. (diff) | |
| download | penes-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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:/" "/", ""); |