Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-10 01:11:19 +0300
committerNejc Habjan <nejc.habjan@siemens.com>2022-06-27 11:36:53 +0300
commit9d39341fe0a5dad0080bd3d472c1b8fb757ceeb6 (patch)
tree57e3eb9de7096834616fefb9b5ae0907cf540f07 /internal
parent12ca83b790fdddbbfcf7c6b08aa9da79a3ab8f6d (diff)
Swap int casts for MaxConfigSize
Diffstat (limited to 'internal')
-rw-r--r--internal/redirects/redirects.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/redirects/redirects.go b/internal/redirects/redirects.go
index 04815404..5d901505 100644
--- a/internal/redirects/redirects.go
+++ b/internal/redirects/redirects.go
@@ -123,7 +123,7 @@ func ParseRedirects(ctx context.Context, root vfs.Root) *Redirects {
return &Redirects{error: errNeedRegularFile}
}
- if int(fi.Size()) > cfg.MaxConfigSize {
+ if fi.Size() > int64(cfg.MaxConfigSize) {
return &Redirects{error: errFileTooLarge}
}