[PR #431] [MERGED] refactor: some query params work as flag and must not accept a value #611

Closed
opened 2026-04-08 16:53:39 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/431
Author: @sigoden
Created: 8/14/2024
Status: Merged
Merged: 8/14/2024
Merged by: @sigoden

Base: mainHead: refactor


📝 Commits (1)

  • 7539978 refactor: some query params work as flag and must not accept a value

📊 Changes

1 file changed (+14 additions, -7 deletions)

View changed files

📝 src/server.rs (+14 -7)

📄 Description

In dufs, if a query parameter is used as a flag, it must not accept a value.

For example, ?hash will return the hash of the file, but ?hash=xxx will not.

Relates to #430


🔄 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/431 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 8/14/2024 **Status:** ✅ Merged **Merged:** 8/14/2024 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `refactor` --- ### 📝 Commits (1) - [`7539978`](https://github.com/sigoden/dufs/commit/7539978c276e8f7afb7baf883e2608eae7fa2845) refactor: some query params work as flag and must not accept a value ### 📊 Changes **1 file changed** (+14 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+14 -7) </details> ### 📄 Description In dufs, if a query parameter is used as a flag, it must not accept a value. For example, `?hash` will return the hash of the file, but `?hash=xxx` will not. Relates to #430 --- <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-04-08 16:53:39 +03:00
zhus closed this issue 2026-04-08 16:53:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#611