Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bfb98f0

Browse files
committedJan 9, 2025·
200 resp only
1 parent 5fb8cdd commit bfb98f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Coder Desktop/VPNLib/Downloader.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ public struct Downloader {
135135
// We already have the latest dylib downloaded on disk
136136
return
137137
}
138-
guard (200 ..< 300).contains(httpResponse.statusCode) else {
138+
139+
guard httpResponse.statusCode == 200 else {
139140
throw DownloadError.unexpectedStatusCode(httpResponse.statusCode)
140141
}
141142

0 commit comments

Comments
 (0)
Please sign in to comment.