From d0adceec59d186e85c76af51b839ab67b21c77f5 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 10 Jan 2019 22:12:43 +0000 Subject: [PATCH] update breaks --- http.go | 2 +- request.go | 2 +- stream.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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,