fixup handler tests

This commit is contained in:
Asim Aslam
2020-04-12 14:29:38 +01:00
parent d03a02f2e4
commit b08c636b44
5 changed files with 28 additions and 53 deletions

View File

@@ -65,7 +65,7 @@ func (a *apiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
// create request and response
c := a.opts.Service.Client()
c := a.opts.Client
req := c.NewRequest(service.Name, service.Endpoint.Name, request)
rsp := &api.Response{}