From bf1ee12da28894cf08b704adb24ce399459072e0 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 25 Sep 2022 21:45:58 +0200 Subject: [PATCH] More sign work (I'm tired). --- activitypub.c | 5 ----- data.c | 4 ++-- http.c | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/activitypub.c b/activitypub.c index 7cb0f37..3c8204b 100644 --- a/activitypub.c +++ b/activitypub.c @@ -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"); diff --git a/data.c b/data.c index 06119c7..84dab46 100644 --- a/data.c +++ b/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)); } } diff --git a/http.c b/http.c index abc3466..379080e 100644 --- a/http.c +++ b/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,