Skip to content

Commit

Permalink
handle 304
Browse files Browse the repository at this point in the history
  • Loading branch information
takutakahashi committed Oct 12, 2023
1 parent 83e15ce commit af0fd0c
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 af0fd0c

Please sign in to comment.