mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
use the new protobuf package and other minor stuff
Former-commit-id: 29bf71e8a73d34b27c6f5fe3f12c4ea1cc2b84b2
This commit is contained in:
3
cache/client/client.go
vendored
3
cache/client/client.go
vendored
@@ -153,10 +153,11 @@ func (h *ClientHandler) ServeHTTP(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
// go Client.Do(request)
|
||||
_, err = Client.Do(request)
|
||||
resp, err := Client.Do(request)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
resp.Body.Close()
|
||||
} else {
|
||||
// get the status code , content type and the write the response body
|
||||
ctx.ContentType(response.Header.Get(cfg.ContentTypeHeader))
|
||||
|
||||
Reference in New Issue
Block a user