[PR #701] [MERGED] feat: skip directory listing in HEAD requests #9095

Closed
opened 2026-06-03 00:43:20 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/701
Author: @sigoden
Created: 4/30/2026
Status: Merged
Merged: 4/30/2026
Merged by: @sigoden

Base: mainHead: feat


📝 Commits (1)

  • c38bbdf feat: skip directory listing for HEAD requests

📊 Changes

1 file changed (+5 additions, -4 deletions)

View changed files

📝 src/server.rs (+5 -4)

📄 Description

Historically, dufs would walk the fs to gather paths even for HEAD requests. This meant that when there were many paths, response times could be quite lengthy.

This PR allows dufs to skip fs walks in HEAD requests. Make HEAD request response times really fast.

Close #700


🔄 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/701 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 4/30/2026 **Status:** ✅ Merged **Merged:** 4/30/2026 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat` --- ### 📝 Commits (1) - [`c38bbdf`](https://github.com/sigoden/dufs/commit/c38bbdfe2b58e45f588293b94a34ecec6abba0b5) feat: skip directory listing for HEAD requests ### 📊 Changes **1 file changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+5 -4) </details> ### 📄 Description Historically, dufs would walk the fs to gather paths even for HEAD requests. This meant that when there were many paths, response times could be quite lengthy. This PR allows dufs to skip fs walks in HEAD requests. Make HEAD request response times really fast. Close #700 --- <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-06-03 00:43:20 +03:00
zhus closed this issue 2026-06-03 00:43:21 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#9095