Skip to content

Commit 5483be9

Browse files
committed
Allow using plaintext paste create w/o content type header
Signed-off-by: Lilly Rose Berner <lilly@lostluma.net>
1 parent c33d3fb commit 5483be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

echo/src/routes/pastes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub async fn get_paste<'r>(
2222
Ok(Json(Paste::fetch(&mut conn, id, password).await?))
2323
}
2424

25-
#[post("/pastes", format = "text/plain", data = "<data>")]
25+
#[post("/pastes", data = "<data>", rank = 2)]
2626
pub async fn create_paste_simple<'r>(
2727
mut conn: Connection<PgDatabase>,
2828
data: String,

0 commit comments

Comments
 (0)