request body too large

This commit is contained in:
2026-04-21 09:47:42 +02:00
parent d9ed72a5af
commit 682b7a0228
+1 -2
View File
@@ -47,9 +47,8 @@ func (h *HttpHandler) HandleSet(w http.ResponseWriter, r *http.Request) {
data := ViewData{ data := ViewData{
Title: "pastebin", Title: "pastebin",
IsPreview: false, IsPreview: false,
Content: r.FormValue("content"),
} }
if strings.Contains(err.Error(), "request body too large") { if strings.Contains(err.Error(), "http: request body too large") {
data.Error = "Content too large" data.Error = "Content too large"
} else { } else {
data.Error = "Invalid form data" data.Error = "Invalid form data"