mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	feat(share): allow serving raw file via query parameter (closes #1182)
This commit is contained in:
		@@ -143,7 +143,7 @@ function register(router: Router) {
 | 
			
		||||
 | 
			
		||||
        addNoIndexHeader(note, res);
 | 
			
		||||
 | 
			
		||||
        if (note.isLabelTruthy("shareRaw")) {
 | 
			
		||||
        if (note.isLabelTruthy("shareRaw") || typeof req.query.raw !== "undefined") {
 | 
			
		||||
            res.setHeader("Content-Type", note.mime).send(note.getContent());
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user