Skip to content

Commit 1f8c6f6

Browse files
committed
Fix http errorcodes for stream termination
1 parent 1fe2b35 commit 1f8c6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func download(url, fileName string) (int, error) {
125125
return 0, err
126126
}
127127

128-
if resp.StatusCode == http.StatusNotFound {
128+
if resp.StatusCode == http.StatusNotFound || resp.StatusCode == http.StatusBadRequest {
129129
return 0, nil
130130
}
131131

0 commit comments

Comments
 (0)