Skip to content

Commit

Permalink
Fix (Core) -> Remove comment and special code used to make a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shib committed Mar 23, 2022
1 parent f2e9def commit e9b992c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions auth.v
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ fn (mut d DigestAuthentification) build_challenge_solution() ?string {

// always present but it dont have the "," at the end
auth += 'algorithm=$d.algorithm.str()'
dump(auth)
return auth
}

Expand Down Expand Up @@ -297,13 +296,13 @@ pub fn (mut d DigestAuthentification) fetch() ?http.Response {
}

d.request.header.add(.authorization, challenge_solution)
/*

// retrying request with solution
resp := http.fetch(d.request) or {
return error('Error while proceeding request with solution: $err')
}
*/
return none

return resp
}

// Return a DigestAuthentification used to fetch from a digest auth protected endpoint
Expand Down
2 changes: 1 addition & 1 deletion v.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Module {
name: 'vigest_auth'
description: 'Digest authentification for v'
version: '0.0.5'
version: '0.0.6'
license: 'MIT'
dependencies: []
}

0 comments on commit e9b992c

Please sign in to comment.