mirror of
1
Fork 0
forgejo/routers
Giteabot d802a8c0cf
Fix HEAD method for robots.txt (#30603) (#30605)
Backport #30603 by @wxiaoguang

Fix #30601

```
~$ curl --head localhost:3000/robots.txt
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 5
Content-Type: text/plain; charset=utf-8
Last-Modified: Wed, 19 Jul 2023 04:56:12 GMT
X-Gitea-Debug: RUN_MODE=dev
Date: Fri, 19 Apr 2024 12:59:44 GMT
```

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 7eaf7907d7f71e103baced018e6eeb271085789d)
2024-04-21 18:16:38 +02:00
..
api Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-21 18:10:34 +02:00
common Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
install Update checker setting updates 2024-04-10 20:55:35 +00:00
private hooks: Harden when we accept push options that change repo settings 2024-04-20 05:58:39 +00:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Fix HEAD method for robots.txt (#30603) (#30605) 2024-04-21 18:16:38 +02:00
init.go Actions Artifacts v4 backend (#28965) 2024-03-06 12:10:45 +08:00