[PR #1135] [MERGED] feat: add HTTP HEAD method support #1072

Closed
opened 2026-02-04 21:14:51 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: feat/head-request-support


📝 Commits (1)

  • 07e04b9 feat: add HTTP HEAD method 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/1135 **Author:** [@stonith404](https://github.com/stonith404) **Created:** 12/4/2025 **Status:** ✅ Merged **Merged:** 12/5/2025 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `feat/head-request-support` --- ### 📝 Commits (1) - [`07e04b9`](https://github.com/pocket-id/pocket-id/commit/07e04b9d529e57195993b47b998c1ab288f3a561) feat: add HTTP `HEAD` method support ### 📊 Changes **2 files changed** (+52 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/bootstrap/router_bootstrap.go` (+12 -1) ➕ `backend/internal/middleware/head_middleware.go` (+40 -0) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:14:51 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#1072