mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
Ignore auth header with empty JSON object
Signed-off-by: Alessandro Verzicco <152161683+alessandro-verzicco@users.noreply.github.com>
This commit is contained in:
@@ -392,6 +392,8 @@ func TestParseMultiAuthHeader(t *testing.T) {
|
||||
}{
|
||||
// Empty header
|
||||
{input: "", expected: nil},
|
||||
// Empty JSON object {}=e30= base64-encoded
|
||||
{input: "e30=", expected: nil},
|
||||
// "null"
|
||||
{input: "null", expected: nil},
|
||||
// Invalid JSON
|
||||
|
||||
Reference in New Issue
Block a user