Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/JamesMc86/digest_auth_rs/commit/2e61615da02329b97ea18d2e00d238d8fc43198b?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
6 additions and
6 deletions
src/digest.rs
src/enums.rs
@ -161,7 +161,7 @@ pub struct AuthContext<'a> {
/// May be left out if not using auth-int
/// May be left out if not using auth-int
pub body : Option < Cow < ' a , [ u8 ] > > ,
pub body : Option < Cow < ' a , [ u8 ] > > ,
/// HTTP method used (defaults to GET)
/// HTTP method used (defaults to GET)
pub method : HttpMethod ,
pub method : HttpMethod < ' a > ,
/// Spoofed client nonce (use only for tests; a random nonce is generated automatically)
/// Spoofed client nonce (use only for tests; a random nonce is generated automatically)
pub cnonce : Option < Cow < ' a , str > > ,
pub cnonce : Option < Cow < ' a , str > > ,
}
}
@ -202,7 +202,7 @@ impl<'a> AuthContext<'a> {
password : PW ,
password : PW ,
uri : UR ,
uri : UR ,
body : Option < BD > ,
body : Option < BD > ,
method : HttpMethod ,
method : HttpMethod < ' a > ,
) -> Self
) -> Self
where
where
UN : Into < Cow < ' a , str > > ,
UN : Into < Cow < ' a , str > > ,
@ -168,20 +168,20 @@ impl Display for Charset {
/// HTTP method (used when generating the response hash for some Qop options)
/// HTTP method (used when generating the response hash for some Qop options)
#[ derive(Debug) ]
#[ derive(Debug) ]
pub enum HttpMethod {
pub enum HttpMethod < ' a > {
GET ,
GET ,
POST ,
POST ,
HEAD ,
HEAD ,
OTHER ( & ' static str ) ,
OTHER ( & ' a str ) ,
}
}
impl Default for HttpMethod {
impl < ' a > Default for HttpMethod < ' a > {
fn default ( ) -> Self {
fn default ( ) -> Self {
HttpMethod ::GET
HttpMethod ::GET
}
}
}
}
impl Display for HttpMethod {
impl < ' a > Display for HttpMethod < ' a > {
/// Convert to uppercase string
/// Convert to uppercase string
fn fmt ( & self , f : & mut Formatter ) -> fmt ::Result {
fn fmt ( & self , f : & mut Formatter ) -> fmt ::Result {
f . write_str ( match self {
f . write_str ( match self {