fix coding style

This commit is contained in:
Shelikhoo 2021-05-04 20:47:19 +01:00
parent 03b0c8efd9
commit 0fbd8a1fd1
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 0 additions and 2 deletions

View File

@ -72,14 +72,12 @@ func (l *Listener) ServeHTTP(writer http.ResponseWriter, request *http.Request)
writer.Header().Set("Cache-Control", "no-store")
for _, httpHeader := range l.config.Header {
for _, httpHeaderValue := range httpHeader.Value {
writer.Header().Set(httpHeader.Name, httpHeaderValue)
}
}
writer.WriteHeader(200)
if f, ok := writer.(http.Flusher); ok {
f.Flush()