Skip to content

Commit

Permalink
Merge pull request #5 from takutakahashi/webp
Browse files Browse the repository at this point in the history
fix bug for webp: handle 304 as safe
  • Loading branch information
takutakahashi authored Oct 12, 2023
2 parents 5cf2008 + 566dbf6 commit 9861b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webp.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func doWebp(req *http.Request) (*http.Response, error) {
log.Println(err)
return nil, err
}
if orgRes.StatusCode != 200 {
if orgRes.StatusCode != 200 && orgRes.StatusCode != 304 {
log.Println(orgRes.Status)
return nil, err
}
Expand Down

0 comments on commit 9861b7e

Please sign in to comment.