Skip to content

Commit e515f05

Browse files
committed
Add placeholder parameter
The placeholder parameter tells Mojolicious how to parse the path. In this case, Mojolicious will parse the path with relaxed placeholders, which means parsing the path by slashes only. The default being slashes and dots ([^/.]+) which isn't good for CPAN releases due to dots in the version numbers.
1 parent e465669 commit e515f05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

root/static/requests/cover.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ cover:
1414
The name of the Release
1515
type: string
1616
required: true
17+
# tell Mojolicious to use relaxed placeholders when
18+
# parsing this parameter (dots are allowed)
19+
x-mojo-placeholder: "#"
1720
responses:
1821
200:
1922
description: Release response

0 commit comments

Comments
 (0)