mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
a6ced5dcba
commit
b5eab19213
1 changed files with 2 additions and 4 deletions
|
@ -15,8 +15,6 @@ import picoev
|
||||||
// A type which doesn't get filtered inside templates
|
// A type which doesn't get filtered inside templates
|
||||||
pub type RawHtml = string
|
pub type RawHtml = string
|
||||||
|
|
||||||
interface AnyParam {}
|
|
||||||
|
|
||||||
// A dummy structure that returns from routes to indicate that you actually sent something to a user
|
// A dummy structure that returns from routes to indicate that you actually sent something to a user
|
||||||
@[noinit]
|
@[noinit]
|
||||||
pub struct Result {}
|
pub struct Result {}
|
||||||
|
@ -733,7 +731,7 @@ fn handle_route[A, X](mut app A, mut user_context X, url urllib.URL, host string
|
||||||
|
|
||||||
if method.args.len > 1 && can_have_data_args {
|
if method.args.len > 1 && can_have_data_args {
|
||||||
// Populate method args with form or query values
|
// Populate method args with form or query values
|
||||||
mut args := []AnyParam{cap: method.args.len + 1}
|
mut args := []string{cap: method.args.len + 1}
|
||||||
data := if user_context.Context.req.method == .get {
|
data := if user_context.Context.req.method == .get {
|
||||||
user_context.Context.query
|
user_context.Context.query
|
||||||
} else {
|
} else {
|
||||||
|
@ -764,7 +762,7 @@ fn handle_route[A, X](mut app A, mut user_context X, url urllib.URL, host string
|
||||||
|
|
||||||
if method.args.len > 1 && can_have_data_args {
|
if method.args.len > 1 && can_have_data_args {
|
||||||
// Populate method args with form or query values
|
// Populate method args with form or query values
|
||||||
mut args := []AnyParam{cap: method.args.len + 1}
|
mut args := []string{cap: method.args.len + 1}
|
||||||
|
|
||||||
data := if user_context.Context.req.method == .get {
|
data := if user_context.Context.req.method == .get {
|
||||||
user_context.Context.query
|
user_context.Context.query
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue