More sign work (I'm tired).

This commit is contained in:
default 2022-09-25 21:45:58 +02:00
parent e132ce5076
commit bf1ee12da2
3 changed files with 3 additions and 8 deletions

View File

@ -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
View File

@ -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
View File

@ -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,