Skip to content

Commit bfb98f0

Browse files
committed
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

Lines changed: 2 additions & 1 deletion
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)