mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-26 10:18:29 +02:00
refactor(http): proper ResponseWriter and headers handling across files
This commit is contained in:
@@ -158,6 +158,8 @@ func (rm *ResponseModifier) FlushRelease() (int, error) {
|
||||
// }
|
||||
contentLength := rm.ContentLength()
|
||||
h.Set("Content-Length", strconv.Itoa(rm.ContentLength()))
|
||||
h.Del("Transfer-Encoding")
|
||||
h.Del("Trailer")
|
||||
rm.w.WriteHeader(rm.StatusCode())
|
||||
|
||||
if contentLength > 0 {
|
||||
|
||||
Reference in New Issue
Block a user