diff options
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -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 | ||