Skip to content

Commit

Permalink
Merge pull request #4 from GizmoTjaz/master
Browse files Browse the repository at this point in the history
GizmoTjaz: return 200 on successful raw paste
  • Loading branch information
kendofriendo authored Nov 30, 2023
2 parents 91eb288 + e789901 commit 73adff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/pasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub async fn getrawpasta(
pastas[index].last_read = timenow;

// send raw content of pasta
let response = Ok(HttpResponse::NotFound()
let response = Ok(HttpResponse::Ok()
.content_type("text/plain")
.body(pastas[index].content.to_owned()));

Expand Down

0 comments on commit 73adff4

Please sign in to comment.