]> git.ipfire.org Git - thirdparty/git.git/blobdiff - credential.c
credential.c: store "wwwauth[]" values in `credential_read()`
[thirdparty/git.git] / credential.c
index e6417bf88046e3afc28bc66460efc626e523ffd2..96fc0daa3576de46d466d95cf0c3688e6dc5ae54 100644 (file)
@@ -238,6 +238,8 @@ int credential_read(struct credential *c, FILE *fp)
                } else if (!strcmp(key, "path")) {
                        free(c->path);
                        c->path = xstrdup(value);
+               } else if (!strcmp(key, "wwwauth[]")) {
+                       strvec_push(&c->wwwauth_headers, value);
                } else if (!strcmp(key, "password_expiry_utc")) {
                        errno = 0;
                        c->password_expiry_utc = parse_timestamp(value, NULL, 10);