소스 검색

Merge branch 'master' of grunfink-codeberg:grunfink/snac2

default 1 년 전
부모
커밋
5bd9b58f09
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      webfinger.c

+ 2 - 1
webfinger.c

@@ -43,7 +43,8 @@ int webfinger_request(const char *qs, char **actor, char **user)
     if (host == NULL || resource == NULL)
         return 400;
 
-    headers = xs_dict_append(headers, "accept", "application/json");
+    headers = xs_dict_append(headers, "accept",     "application/json");
+    headers = xs_dict_append(headers, "user-agent", USER_AGENT);
 
     /* is it a query about one of us? */
     if (strcmp(host, xs_dict_get(srv_config, "host")) == 0) {