debian-mirror-gitlab/workhorse/internal/helper/nginx/nginx.go
2023-03-05 14:24:40 +05:30

13 lines
279 B
Go

package nginx
import "net/http"
const ResponseBufferHeader = "X-Accel-Buffering"
func DisableResponseBuffering(w http.ResponseWriter) {
w.Header().Set(ResponseBufferHeader, "no")
}
func AllowResponseBuffering(w http.ResponseWriter) {
w.Header().Del(ResponseBufferHeader)
}