mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-21 21:05:05 +00:00
More sign work (I'm tired).
This commit is contained in:
parent
e132ce5076
commit
bf1ee12da2
3 changed files with 3 additions and 8 deletions
|
@ -28,11 +28,6 @@ int activitypub_request(snac *snac, char *url, d_char **data)
|
|||
NULL, NULL, 0, &status, &payload, &p_size);
|
||||
|
||||
if (valid_status(status)) {
|
||||
if (dbglevel >= 3) {
|
||||
xs *j = xs_json_dumps_pp(response, 4);
|
||||
fprintf(stderr, "%s\n", j);
|
||||
}
|
||||
|
||||
/* ensure it's ActivityPub data */
|
||||
ctype = xs_dict_get(response, "content-type");
|
||||
|
||||
|
|
4
data.c
4
data.c
|
@ -806,7 +806,7 @@ void enqueue_input(snac *snac, char *msg, char *req)
|
|||
|
||||
rename(tfn, fn);
|
||||
|
||||
snac_debug(snac, 2, xs_fmt("enqueue_input %s", fn));
|
||||
snac_debug(snac, 1, xs_fmt("enqueue_input %s", fn));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -842,7 +842,7 @@ void enqueue_output(snac *snac, char *msg, char *actor, int retries)
|
|||
|
||||
rename(tfn, fn);
|
||||
|
||||
snac_debug(snac, 2, xs_fmt("enqueue_output %s %s %d", actor, fn, retries));
|
||||
snac_debug(snac, 1, xs_fmt("enqueue_output %s %s %d", actor, fn, retries));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
http.c
2
http.c
|
@ -86,7 +86,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url,
|
|||
hdrs = xs_dict_append(hdrs, "date", date);
|
||||
hdrs = xs_dict_append(hdrs, "signature", signature);
|
||||
hdrs = xs_dict_append(hdrs, "digest", digest);
|
||||
hdrs = xs_dict_append(hdrs, "host", xs_dict_get(srv_config, "host"));
|
||||
hdrs = xs_dict_append(hdrs, "host", host);
|
||||
hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x");
|
||||
|
||||
response = xs_http_request(method, url, hdrs,
|
||||
|
|
Loading…
Reference in a new issue