mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
65b2c0329d
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. |
||
---|---|---|
.. | ||
authchallenge.go | ||
authchallenge_test.go | ||
basictransport.go | ||
catalog.go | ||
customtransport.go | ||
delete.go | ||
digest.go | ||
errortransport.go | ||
image.go | ||
layer.go | ||
manifest.go | ||
ping.go | ||
registry.go | ||
tags.go | ||
tokentransport.go | ||
tokentransport_test.go |