Fix authenticated-user-header is case sensitive in header authenticator (#4780)

From RFC 2616 - "Hypertext Transfer Protocol -- HTTP/1.1", Section 4.2, "Message Headers":

Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive.
optimising-macrocalls
Diep Pham 2020-07-31 00:24:28 +07:00 zatwierdzone przez GitHub
rodzic 4de95a64c1
commit a9d79a1a84
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -14,7 +14,7 @@ Authenticator for trusted header authentication
function HeaderAuthenticator(server) {
this.server = server;
this.header = server.get("authenticated-user-header");
this.header = server.get("authenticated-user-header").toLowerCase();
}
/*