-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
HEAD to /robots.txt returns 404 error #30601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
-> Fix HEAD method for robots.txt #30603 |
wxiaoguang
added a commit
that referenced
this issue
Apr 19, 2024
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Apr 19, 2024
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Apr 19, 2024
wxiaoguang
pushed a commit
that referenced
this issue
Apr 19, 2024
silverwind
pushed a commit
that referenced
this issue
Apr 19, 2024
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 <[email protected]>
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
Backport go-gitea#30603 by @wxiaoguang Fix go-gitea#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 <[email protected]> (cherry picked from commit 7eaf790)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When accessing the /robots.txt location with
curl -I
, a 404 error is returned. Instead a proper 200 response is expected. Other locations seem not to be affected.Gitea Version
1.23.0+dev-172-geb24d973b0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
using try.gitea.io, same issue on https://opendev.org
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: