Explorar o código

fixed err: http: multiple response.WriteHeader calls

Mohamed Al Ashaal %!s(int64=7) %!d(string=hai) anos
pai
achega
7e5132e857
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      server.go

+ 1 - 0
server.go

@@ -45,6 +45,7 @@ func ServeHTTP() http.Handler {
 				loadbalancer.UpsertServer(testutils.ParseURI(upstream))
 			}
 			loadbalancer.ServeHTTP(res, req)
+			return
 		}
 		http.Error(res, "The request domain couldn't be found here", http.StatusNotImplemented)
 	})