1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-26 05:50:29 +01:00

Merge pull request #644 from BlackDex/issue-565

Fixed issue #565
Dieser Commit ist enthalten in:
Daniel García 2019-10-05 16:17:43 +02:00 committet von GitHub
Commit c182583e09
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -253,12 +253,20 @@ fn get_page(url: &str) -> Result<Response, Error> {
} }
fn get_page_with_cookies(url: &str, cookie_str: &str) -> Result<Response, Error> { fn get_page_with_cookies(url: &str, cookie_str: &str) -> Result<Response, Error> {
if cookie_str.is_empty() {
CLIENT
.get(url)
.send()?
.error_for_status()
.map_err(Into::into)
} else {
CLIENT CLIENT
.get(url) .get(url)
.header("cookie", cookie_str) .header("cookie", cookie_str)
.send()? .send()?
.error_for_status() .error_for_status()
.map_err(Into::into) .map_err(Into::into)
}
} }
/// Returns a Integer with the priority of the type of the icon which to prefer. /// Returns a Integer with the priority of the type of the icon which to prefer.