dduan / Just

Swift HTTP for Humans
MIT License
1.4k stars 134 forks source link

logout problem ...slow #81

Closed amervelic closed 6 years ago

amervelic commented 7 years ago

func logout (completion:@escaping (Any)->()) {

    let urlString = "https://bhmobile.bhtelecom.ba/c/portal/logout"

    Just.get(urlString, allowRedirects:false) { r  in

        DispatchQueue.main.async(execute: {
                completion(r.description)
        })
    }

Same logout on android (OkHttp library 80ms - 200ms status code 302) On iOS - 1s (3G) - 5s (Edge) status code 200 but i need status 302 Why ?

dduan commented 6 years ago

I doubt this is caused by Just. Closing for now. Feel free to re-open if you still have questions.