diff --git a/README.md b/README.md index 6c287e9b..d3a6f3e3 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,18 @@ Kibana requests are also signed automatically. ## Installation -### Download binary executable: +### Download binary executable **aws-es-proxy** has single executable binaries for Linux, Mac and Windows. Download the latest [aws-es-proxy release](https://github.com/abutaha/aws-es-proxy/releases/). +### Via homebrew + +```sh +brew install aws-es-proxy +``` + ### Build from Source diff --git a/aws-es-proxy.go b/aws-es-proxy.go index 4e47770a..1a0af49b 100644 --- a/aws-es-proxy.go +++ b/aws-es-proxy.go @@ -12,6 +12,7 @@ import ( "net/http/httputil" "net/url" "os" + "path" "regexp" "strings" "time" @@ -129,6 +130,7 @@ func (p *proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) { ep := *r.URL ep.Host = p.host ep.Scheme = p.scheme + ep.Path = path.Clean(ep.Path) req, err := http.NewRequest(r.Method, ep.String(), r.Body) if err != nil {