Skip to content

Commit

Permalink
Error if redirects file is greater than 64 KiB
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Johnson authored and lidel committed Sep 22, 2022
1 parent 96ba3de commit 3bd54b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions redirects.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import (
// 64 KiB
const maxFileSizeInBytes = 65536

// 64 KiB
const maxFileSizeInBytes = 65536

// A Rule represents a single redirection or rewrite rule.
type Rule struct {
// From is the path which is matched to perform the rule.
Expand Down

0 comments on commit 3bd54b6

Please sign in to comment.