fix: server-handler crash from filename (closes #386)
This commit is contained in:
		
							parent
							
								
									b69556c918
								
							
						
					
					
						commit
						e10de3febf
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -462,6 +462,12 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
 | 
				
			||||||
          await serveHandler(req, res, {
 | 
					          await serveHandler(req, res, {
 | 
				
			||||||
            public: argv.output,
 | 
					            public: argv.output,
 | 
				
			||||||
            directoryListing: false,
 | 
					            directoryListing: false,
 | 
				
			||||||
 | 
					            headers: [
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                source: "**/*.html",
 | 
				
			||||||
 | 
					                headers: [{ key: "Content-Disposition", value: "inline" }],
 | 
				
			||||||
 | 
					              },
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
          const status = res.statusCode
 | 
					          const status = res.statusCode
 | 
				
			||||||
          const statusString =
 | 
					          const statusString =
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue