summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-02 03:49:38 +0100
committerdefault <nobody@localhost>2023-02-02 03:49:38 +0100
commit463439283a3f346a8869df6d17a70f20a0a02419 (patch)
tree8c9ec3c9c2552a8dab6ee55bceca9f5951ae8788 /http.c
parentec07b0c59d0313faedd147d08a65ade0feaf88b9 (diff)
Minor header tweaks.
Diffstat (limited to 'http.c')
-rw-r--r--http.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/http.c b/http.c
index 881a7e0..1948f2b 100644
--- a/http.c
+++ b/http.c
@@ -11,19 +11,19 @@
#include "snac.h"
-d_char *http_signed_request(snac *snac, char *method, char *url,
- d_char *headers,
- d_char *body, int b_size,
- int *status, d_char **payload, int *p_size,
+xs_dict *http_signed_request(snac *snac, const char *method, const char *url,
+ xs_dict *headers,
+ const char *body, int b_size,
+ int *status, xs_str **payload, int *p_size,
int timeout)
/* does a signed HTTP request */
{
- xs *l1;
- xs *date;
- xs *digest;
- xs *s64;
- xs *signature;
- xs *hdrs;
+ xs *l1 = NULL;
+ xs *date = NULL;
+ xs *digest = NULL;
+ xs *s64 = NULL;
+ xs *signature = NULL;
+ xs *hdrs = NULL;
char *host;
char *target;
char *seckey;