From d84e57174b897e07d5dad539d4255b74dcf82392 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 2 Oct 2022 13:38:59 +0300 Subject: [PATCH] updated code comments formatting --- tools/filesystem/filesystem.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/filesystem/filesystem.go b/tools/filesystem/filesystem.go index dce5cd7d..503562e8 100644 --- a/tools/filesystem/filesystem.go +++ b/tools/filesystem/filesystem.go @@ -216,16 +216,16 @@ func (s *System) Serve(response http.ResponseWriter, fileKey string, name string disposition = "inline" } - // make an exception for specific content types and force a - // custom content type to send in the response so that it can be loaded directly. + // make an exception for specific content types and force a custom + // content type to send in the response so that it can be loaded directly extContentType := realContentType if ct, found := manualExtensionContentTypes[filepath.Ext(name)]; found && extContentType != ct { extContentType = ct } - // clickjacking shouldn't be a concern when serving static files, + // clickjacking shouldn't be a concern when serving uploaded files, // so it safe to unset the global X-Frame-Options to allow files embedding - // (https://github.com/pocketbase/pocketbase/issues/677) + // (see https://github.com/pocketbase/pocketbase/issues/677) response.Header().Del("X-Frame-Options") response.Header().Set("Content-Disposition", disposition+"; filename="+name)