maidsafe / rust_sodium

This crate is no longer maintained. Looking for maintainers.
BSD 3-Clause "New" or "Revised" License
77 stars 34 forks source link

&& instead of || in bad http download logic #93

Closed thedavidmeister closed 5 years ago

thedavidmeister commented 5 years ago

in build.rs

    // Only accept 2xx status codes
    if response.status_code() < 200 && response.status_code() >= 300 {
        panic!("Download error: HTTP {}", response.status_code());
    }

should be < 200 || >= 300

pierrechevalier83 commented 5 years ago

Thanks for raising this to our attention, @thedavidmeister :smile: