We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@[unsafe]
1 parent 656afa9 commit 90ab5d2Copy full SHA for 90ab5d2
1 file changed
vlib/veb/parse.v
@@ -18,6 +18,10 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string, string) {
18
attr := x[i]
19
attru := attr.to_upper()
20
m := http.method_from_str(attru)
21
+ if attru == 'UNSAFE' {
22
+ x.delete(i)
23
+ continue
24
+ }
25
if attru == 'GET' || m != .get {
26
methods << m
27
x.delete(i)
0 commit comments