Compare commits

..

No commits in common. "d57f60c710f51f77b2ed1a135625ef1c14797536" and "2ee48560b62f5648822c05ad87fc5ab49788e87e" have entirely different histories.

1 changed files with 0 additions and 2 deletions

View File

@ -60,7 +60,6 @@ func (server httpServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
for _, handler := range server.handlers {
if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern {
foundHandler = handler
found = true
}
}
@ -97,7 +96,6 @@ func (server httpServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
foundHandler.Handle(*apireq, response)
// 11. apply headers
res.Header().Set("Content-Type", "application/json; charset=utf-8")
for key, values := range response.Headers {
for _, value := range values {
res.Header().Add(key, value)