1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

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.
This commit is contained in:
Diep Pham 2020-07-31 00:24:28 +07:00 committed by GitHub
parent 4de95a64c1
commit a9d79a1a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
/*