summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/http.c b/http.c
index 2952e68..6580c92 100644
--- a/http.c
+++ b/http.c
@@ -171,10 +171,15 @@ int check_signature(xs_dict *req, xs_str **err)
171 if ((p = strchr(keyId, '#')) != NULL) 171 if ((p = strchr(keyId, '#')) != NULL)
172 *p = '\0'; 172 *p = '\0';
173 173
174 /* also strip cgi variables */
175 if ((p = strchr(keyId, '?')) != NULL)
176 *p = '\0';
177
174 xs *actor = NULL; 178 xs *actor = NULL;
179 int status;
175 180
176 if (!valid_status(actor_request(NULL, keyId, &actor))) { 181 if (!valid_status((status = actor_request(NULL, keyId, &actor)))) {
177 *err = xs_fmt("unknown actor %s", keyId); 182 *err = xs_fmt("actor request error %s %d", keyId, status);
178 return 0; 183 return 0;
179 } 184 }
180 185