[PR #602] [MERGED] feat: support noscript fallback #651

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

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/602
Author: @sigoden
Created: 8/2/2025
Status: Merged
Merged: 8/2/2025
Merged by: @sigoden

Base: mainHead: feat


📝 Commits (2)

📊 Changes

5 files changed (+182 additions, -51 deletions)

View changed files

📝 assets/index.html (+3 -0)
📝 src/main.rs (+1 -0)
src/noscript.rs (+100 -0)
📝 src/server.rs (+65 -51)
📝 tests/http.rs (+13 -0)

📄 Description

In the following cases, dufs will serve the noscript version of HTML:

  • The query string contains ?noscript
  • The user-agent detects lynx, w3m, links, elinks, curl, wget, httpie, or aria2
  • The browser has JavaScript disabled

Close #530


🔄 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/602 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 8/2/2025 **Status:** ✅ Merged **Merged:** 8/2/2025 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat` --- ### 📝 Commits (2) - [`16bad63`](https://github.com/sigoden/dufs/commit/16bad63a741311f540253cc46059a246be67d0a5) feat: support noscript fallback - [`eba8b83`](https://github.com/sigoden/dufs/commit/eba8b833cbfc878a62b3fb385c9d3433ab3c62cc) add test ### 📊 Changes **5 files changed** (+182 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `assets/index.html` (+3 -0) 📝 `src/main.rs` (+1 -0) ➕ `src/noscript.rs` (+100 -0) 📝 `src/server.rs` (+65 -51) 📝 `tests/http.rs` (+13 -0) </details> ### 📄 Description In the following cases, dufs will serve the noscript version of HTML: - The query string contains `?noscript` - The user-agent detects lynx, w3m, links, elinks, curl, wget, httpie, or aria2 - The browser has JavaScript disabled Close #530 --- <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:49 +03:00
zhus closed this issue 2026-04-08 16:53:49 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#651