diff --git a/http.go b/http.go index d65ac56..e553c69 100644 --- a/http.go +++ b/http.go @@ -87,7 +87,7 @@ func (h *httpClient) call(ctx context.Context, address string, req client.Reques URL: &url.URL{ Scheme: "http", Host: address, - Path: req.Method(), + Path: req.Endpoint(), }, Header: header, Body: buf, diff --git a/request.go b/request.go index 6618636..2280091 100644 --- a/request.go +++ b/request.go @@ -40,7 +40,7 @@ func (h *httpRequest) Service() string { return h.service } -func (h *httpRequest) Method() string { +func (h *httpRequest) Endpoint() string { return h.method } diff --git a/stream.go b/stream.go index da8374e..115f0e4 100644 --- a/stream.go +++ b/stream.go @@ -72,7 +72,7 @@ func (h *httpStream) Send(msg interface{}) error { URL: &url.URL{ Scheme: "http", Host: h.address, - Path: h.request.Method(), + Path: h.request.Endpoint(), }, Header: h.header, Body: buf,