Missing headers with HEAD requesting the homepage #1989

Closed
opened 2025-11-02 04:20:22 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @dpedu on GitHub (Jun 29, 2018).

Description

When I make a HEAD request to a Gitea instance's homepage, the Content-Type header is missing. With GET, the header is present. HEAD is defined as providing the same headers as if the URL was requested with a GET.

Originally created by @dpedu on GitHub (Jun 29, 2018). - Gitea version (or commit ref): d877bf7 - Git version: n/a - Operating system: Ubuntu 14.04 - Database: - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes: https://try.gitea.io - [ ] No - [ ] Not relevant - Log gist: https://gist.github.com/dpedu/83bf045ea68fb9ced690c2cda65378cd ## Description When I make a HEAD request to a Gitea instance's homepage, the Content-Type header is missing. With GET, the header is present. HEAD is defined as providing the same headers as if the URL was requested with a GET.
GiteaMirror added the type/enhancementissue/stale labels 2025-11-02 04:20:22 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 20, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 20, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Feb 19, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Feb 19, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1989