Skip to content

Commit

Permalink
Merge branch 'gjacquet-clean-url-before-signing'
Browse files Browse the repository at this point in the history
  • Loading branch information
abutaha committed Nov 23, 2018
2 parents a67b8e8 + 61fcf90 commit aad56eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions aws-es-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"net/http/httputil"
"net/url"
"os"
"path"
"regexp"
"strings"
"time"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit aad56eb

Please sign in to comment.