fix: content-disposition inline should apply to all resource types (closes #728)
This commit is contained in:
		@@ -347,7 +347,7 @@ export async function handleBuild(argv) {
 | 
			
		||||
          directoryListing: false,
 | 
			
		||||
          headers: [
 | 
			
		||||
            {
 | 
			
		||||
              source: "**/*.html",
 | 
			
		||||
              source: "**/*.*",
 | 
			
		||||
              headers: [{ key: "Content-Disposition", value: "inline" }],
 | 
			
		||||
            },
 | 
			
		||||
          ],
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ function sluggify(s: string): string {
 | 
			
		||||
    .split("/")
 | 
			
		||||
    .map((segment) =>
 | 
			
		||||
      segment.replace(/\s/g, "-").replace(/%/g, "-percent").replace(/\?/g, "-q").replace(/#/g, ""),
 | 
			
		||||
    ) // slugify all segments
 | 
			
		||||
    )
 | 
			
		||||
    .join("/") // always use / as sep
 | 
			
		||||
    .replace(/\/$/, "")
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user