Skip to content

Commit

Permalink
fix(transport): change variable name (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed May 14, 2021
1 parent 0c022a3 commit 7b14d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport.go
Expand Up @@ -74,9 +74,9 @@ func (t *Transport) makeRequest(r *http.Request) (*http.Request, error) {

func scanAcceptHeader(r *http.Request) string {
f := os.Getenv("MANAEL_ENABLE_AVIF")
accepts := r.Header.Get("Accept")
a := r.Header.Get("Accept")

for _, v := range strings.Split(accepts, ",") {
for _, v := range strings.Split(a, ",") {
t := strings.TrimSpace(v)

if f == "true" && strings.HasPrefix(t, "image/avif") {
Expand Down

1 comment on commit 7b14d20

@vercel
Copy link

@vercel vercel bot commented on 7b14d20 May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.