Skip to content

Commit 9a44396

Browse files
committed
Update routers/common/repo.go
1 parent 388cfd3 commit 9a44396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/common/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func ServeData(ctx *context.Context, filePath string, size int64, reader io.Read
103103
} else if st.IsPDF() {
104104
// no sandbox attribute for pdf as it breaks rendering in at least safari. this
105105
// should generally be safe as scripts inside PDF can not escape the PDF document
106-
// see https://bugs.chromium.org/p/chromium/issues/detail?id=413851 for more discussion
106+
// see https://bugs.chromium.org/p/chromium/issues/detail?id=413851 for more discussion
107107
ctx.Resp.Header().Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline'")
108108
}
109109

0 commit comments

Comments
 (0)