mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-04 01:23:01 +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:
		@@ -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();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user