feat: set global http timeouts except for streaming endpoints
related #411 Release-As: 0.16.2
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user