fix(attachments): enforce upload body read deadline

This commit is contained in:
kk10
2026-11-05 11:36:12 +03:00
parent 91f9308991
commit b33515b037
3 changed files with 25 additions and 0 deletions
+4
View File
@@ -11,6 +11,10 @@ type responseWriter struct {
status int
}
func (w *responseWriter) Unwrap() http.ResponseWriter {
return w.ResponseWriter
}
func (w *responseWriter) WriteHeader(status int) {
w.status = status
w.ResponseWriter.WriteHeader(status)