diff options
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index c7b73f7..19036fb 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -46,7 +46,8 @@ int webfinger_request(const char *qs, char **actor, char **user) | |||
| 46 | if (host == NULL || resource == NULL) | 46 | if (host == NULL || resource == NULL) |
| 47 | return 400; | 47 | return 400; |
| 48 | 48 | ||
| 49 | headers = xs_dict_append(headers, "accept", "application/json"); | 49 | headers = xs_dict_append(headers, "accept", "application/json"); |
| 50 | headers = xs_dict_append(headers, "user-agent", USER_AGENT); | ||
| 50 | 51 | ||
| 51 | /* is it a query about one of us? */ | 52 | /* is it a query about one of us? */ |
| 52 | if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) { | 53 | if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) { |