mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci,vweb: fix hard coded data in vweb_test.v
This commit is contained in:
@@ -204,14 +204,14 @@ fn test_http_client_json_post() ? {
|
|||||||
fn test_http_client_multipart_form_data() ? {
|
fn test_http_client_multipart_form_data() ? {
|
||||||
boundary := '6844a625b1f0b299'
|
boundary := '6844a625b1f0b299'
|
||||||
name := 'foo'
|
name := 'foo'
|
||||||
ct := 'multipart/form-data; boundary=------------------------$boundary'
|
ct := 'multipart/form-data; boundary=$boundary'
|
||||||
contents := 'baz buzz'
|
contents := 'baz buzz'
|
||||||
data := "--------------------------$boundary
|
data := '--$boundary\r
|
||||||
Content-Disposition: form-data; name=\"$name\"
|
Content-Disposition: form-data; name="$name"\r
|
||||||
|
\r
|
||||||
$contents
|
$contents\r
|
||||||
--------------------------$boundary--
|
--$boundary--\r
|
||||||
"
|
'
|
||||||
mut x := http.fetch(
|
mut x := http.fetch(
|
||||||
url: 'http://127.0.0.1:$sport/form_echo'
|
url: 'http://127.0.0.1:$sport/form_echo'
|
||||||
method: .post
|
method: .post
|
||||||
|
Reference in New Issue
Block a user