Skip to content

Commit 2e8253f

Browse files
committed
fix: Cap padding at 12 to limit response amplification
1 parent 483b657 commit 2e8253f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ E.g., [mayu.due.moe/get/@demo?theme=urushi](https://mayu.due.moe/get/@demo?theme
3434
- `lain`
3535
- `garukura`
3636

37-
Mayu will pad the counter number with zeroes until it reaches a length of 6 characters. You can modify this behaviour by changing the `padding` query parameter of any `get` operation.
37+
Mayu will pad the counter number with zeroes until it reaches a length of 6 characters. You can modify this behaviour by changing the `padding` query parameter of any `get` operation, up to a maximum of 12.
3838

3939
### Local
4040

src/request.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const default_theme = "asoul"
1111

1212
const default_padding = 6
1313

14-
const max_padding = 32
14+
const max_padding = 12
1515

1616
fn middleware(request, handle) {
1717
let request = wisp.method_override(request)

0 commit comments

Comments
 (0)