Commit graph

7 commits

Author SHA1 Message Date
Pat Gavlin 65b2c0329d Use a distinguished error value for basic auth. (#120)
Rather than returning an error that requires pattern-matching from
`parseChallenge` when the challenge header requires basic
authentication, return a distinguished error value. This makes checking
for this error a bit easier.

This commit also updates the check in `r.Headers` to use the new error
value and adds a couple of regression tests.
2018-07-26 14:13:58 -07:00
Jess Frazelle f14de4c039
two small cleanups
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-17 15:55:31 -04:00
Jess Frazelle 294bae7b50
fix token
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-06 15:47:08 -04:00
Jess Frazelle eaf071b3ef
run gofmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-06 12:04:28 -04:00
Vadim Bauer 22f6936237 don't fail if scope container more the one grand. (#92) 2018-06-04 16:42:58 -04:00
Jess Frazelle a3b459b1a5
refactor client
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 09:12:29 -05:00
Daniel Garcia 5088b3b142 fixes #72, suppose challege headers that don not quote fields (#73) 2018-03-01 12:50:59 -05:00