[PR #687] [CLOSED] fix: skip plain directory listing on HEAD requests #6215

Closed
opened 2026-05-29 23:51:42 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/687
Author: @jgoedeke
Created: 4/23/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 7eeb770 fix: skip plain directory listing on HEAD requests

📊 Changes

2 files changed (+17 additions, -0 deletions)

View changed files

📝 src/server.rs (+16 -0)
📝 tests/http.rs (+1 -0)

📄 Description

Related to #682.

#686 improved exact-path metadata lookup for files via ?json, but plain directory HEAD requests still take the full directory listing path. This PR does not add a new metadata API. It only avoids unnecessary work for the existing plain directory HEAD case.


🔄 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/sigoden/dufs/pull/687 **Author:** [@jgoedeke](https://github.com/jgoedeke) **Created:** 4/23/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`7eeb770`](https://github.com/sigoden/dufs/commit/7eeb7708a9ac43f51cb1167229247ec3047e111e) fix: skip plain directory listing on HEAD requests ### 📊 Changes **2 files changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+16 -0) 📝 `tests/http.rs` (+1 -0) </details> ### 📄 Description Related to #682. #686 improved exact-path metadata lookup for files via `?json`, but plain directory `HEAD` requests still take the full directory listing path. This PR does not add a new metadata API. It only avoids unnecessary work for the existing plain directory `HEAD` case. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-05-29 23:51:42 +03:00
zhus closed this issue 2026-05-29 23:51:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#6215