From 0fbd8a1fd1a28cf6aced2cb031c25987685a49e0 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Tue, 4 May 2021 20:47:19 +0100 Subject: [PATCH] fix coding style --- transport/internet/http/hub.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/transport/internet/http/hub.go b/transport/internet/http/hub.go index df2222b63..d573b5655 100644 --- a/transport/internet/http/hub.go +++ b/transport/internet/http/hub.go @@ -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()