mirror of https://github.com/v2fly/v2ray-core.git
fix coding style
This commit is contained in:
parent
03b0c8efd9
commit
0fbd8a1fd1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue