Skip to content

Commit

Permalink
Login: Status code will not be checked for reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
BLeeEZ committed Oct 11, 2021
1 parent 0f40f73 commit 2079453
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Amperfy/Api/BackendProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ class BackendProxy {
let task = session.downloadTask(with: request) { (tempLocalUrl, response, error) in
if let error = error {
downloadError = AuthenticationError(message: error.localizedDescription, kind: .downloadError)
} else {
if let statusCode = (response as? HTTPURLResponse)?.statusCode {
if statusCode > 400 {
downloadError = AuthenticationError(message: "\(statusCode)", kind: .requestStatusError)
} else {
os_log("Server url is reachable. Status code: %d", log: self.log, type: .info, statusCode)
}
}
}
group.leave()
}
Expand Down

0 comments on commit 2079453

Please sign in to comment.