feat: set global http timeouts except for streaming endpoints

related #411

Release-As: 0.16.2
This commit is contained in:
sentriz
2023-11-18 12:33:36 +00:00
parent dd0f6b3650
commit 2edb1b8eda
3 changed files with 27 additions and 5 deletions

View File

@@ -105,6 +105,10 @@ func (w *statusWriter) Write(b []byte) (int, error) {
return w.ResponseWriter.Write(b)
}
func (w *statusWriter) Unwrap() http.ResponseWriter {
return w.ResponseWriter
}
func statusToBlock(code int) string {
var bg int
switch {