[PR #149] [CLOSED] feat: use multipart instead of x-www-form-urlencoded #179

Closed
opened 2026-02-27 10:16:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/149
Author: @NemoDacremont
Created: 4/3/2025
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 917847e feat: use multipart instead of x-www-form-urlencoded to try to avoid unwanted CRLF in pastes

📊 Changes

3 files changed (+54 additions, -6 deletions)

View changed files

📝 crates/wastebin_server/Cargo.toml (+1 -1)
📝 crates/wastebin_server/src/handlers/insert/form.rs (+52 -4)
📝 crates/wastebin_server/templates/index.html (+1 -1)

📄 Description

The goal is to prevent sending CRLF when the input uses LF (#148)

What is there :


🔄 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/matze/wastebin/pull/149 **Author:** [@NemoDacremont](https://github.com/NemoDacremont) **Created:** 4/3/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`917847e`](https://github.com/matze/wastebin/commit/917847e4928ced0b66cd0e7a977d501830b73d0e) feat: use multipart instead of x-www-form-urlencoded to try to avoid unwanted CRLF in pastes ### 📊 Changes **3 files changed** (+54 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/wastebin_server/Cargo.toml` (+1 -1) 📝 `crates/wastebin_server/src/handlers/insert/form.rs` (+52 -4) 📝 `crates/wastebin_server/templates/index.html` (+1 -1) </details> ### 📄 Description The goal is to prevent sending CRLF when the input uses LF (#148) What is there : * Change form enctype * Adapt insert/form.rs to receive multipart data (https://docs.rs/axum/latest/axum/extract/struct.Multipart.html) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:16:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#179
No description provided.