diff options
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:/" "/", ""); |