mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-16 05:54:01 +03:00
[PR #1135] [MERGED] feat: add HTTP HEAD method support
#1072
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1135
Author: @stonith404
Created: 12/4/2025
Status: ✅ Merged
Merged: 12/5/2025
Merged by: @stonith404
Base:
main← Head:feat/head-request-support📝 Commits (1)
07e04b9feat: add HTTPHEADmethod support📊 Changes
2 files changed (+52 additions, -1 deletions)
View changed files
📝
backend/internal/bootstrap/router_bootstrap.go(+12 -1)➕
backend/internal/middleware/head_middleware.go(+40 -0)📄 Description
This PR adds support for the HEAD HTTP method. A HEAD request invokes the underlying GET endpoint but omits the response body. Calling the underlying handler is necessary to correctly determine the content size and type.
Closes #1132
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.