Skip to content

Commit d3c7dde

Browse files
committed
200 resp only
1 parent a83db99 commit d3c7dde

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
@@ -141,7 +141,8 @@ public struct Downloader {
141141
// We already have the latest dylib downloaded on disk
142142
return
143143
}
144-
guard (200 ..< 300).contains(httpResponse.statusCode) else {
144+
145+
guard httpResponse.statusCode == 200 else {
145146
throw .unexpectedStatusCode(httpResponse.statusCode)
146147
}
147148

0 commit comments

Comments
 (0)