diff options
| author | 2024-01-28 21:04:11 +0000 | |
|---|---|---|
| committer | 2024-01-28 21:04:11 +0000 | |
| commit | 9568ec8bfede731d2ecdc5840e3a8a125fc31510 (patch) | |
| tree | f06a7cef6e8b485a9a4ed26880ac5b310536a085 /httpd.c | |
| parent | cleanup (diff) | |
| download | penes-snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.tar.gz penes-snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.tar.xz penes-snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.zip | |
cleanup
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 8 |
1 files changed, 0 insertions, 8 deletions
| @@ -243,14 +243,6 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 243 | *body = xs_str_new("User-agent: *\n" | 243 | *body = xs_str_new("User-agent: *\n" |
| 244 | "Disallow: /\n"); | 244 | "Disallow: /\n"); |
| 245 | } | 245 | } |
| 246 | else | ||
| 247 | if (strcmp(q_path, "/.well-known/host-meta") == 0) { | ||
| 248 | status = 200; | ||
| 249 | *ctype = "application/xrd+xml"; | ||
| 250 | *body = xs_str_new("<XRD>" | ||
| 251 | "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>" | ||
| 252 | "</XRD>"); | ||
| 253 | } | ||
| 254 | 246 | ||
| 255 | if (status != 0) | 247 | if (status != 0) |
| 256 | srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status)); | 248 | srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status)); |