Skip to content

Commit

Permalink
Bump user-agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
imranismail committed Jan 5, 2022
1 parent 1743c4c commit 2b225fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can learn more about the BFF cloud pattern here:
cd $(mktemp -d)

# download the bff executable into it
curl -sfL https://github.com/imranismail/bff/releases/download/v0.5.2/bff_0.5.2_Linux_x86_64.tar.gz | tar xvz
curl -sfL https://github.com/imranismail/bff/releases/download/v0.5.3/bff_0.5.3_Linux_x86_64.tar.gz | tar xvz

# move it into $PATH dir
mv bff /usr/local/bin
Expand Down
1 change: 1 addition & 0 deletions body/json_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (m *JSONResource) FetchResource(downstreamReq *http.Request) (martian.Respo
return nil, err
}

upstreamReq.Header.Set("User-Agent", "bff/v0.x.x")
upstreamReq.Header.Set("Accept", "application/json")

for _, allowed := range m.allowedHeaders {
Expand Down

0 comments on commit 2b225fa

Please sign in to comment.