mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fixed custom header authentication
This commit is contained in:
		| @@ -38,9 +38,7 @@ function exec(opts) { | ||||
|             }; | ||||
|  | ||||
|             if (opts.auth) { | ||||
|                 const token = Buffer.from(opts.auth.user + ":" + opts.auth.pass).toString('base64'); | ||||
|  | ||||
|                 headers['Authorization'] = `Basic ${token}`; | ||||
|                 headers['trilium-cred'] = Buffer.from(opts.auth.username + ":" + opts.auth.password).toString('base64'); | ||||
|             } | ||||
|  | ||||
|             const request = client.request({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user