1
0
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:
Delyan Angelov 2021-11-10 18:41:25 +02:00
parent 637ebe5d42
commit 8a971c3bf7
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -204,14 +204,14 @@ fn test_http_client_json_post() ? {
fn test_http_client_multipart_form_data() ? {
boundary := '6844a625b1f0b299'
name := 'foo'
ct := 'multipart/form-data; boundary=------------------------$boundary'
ct := 'multipart/form-data; boundary=$boundary'
contents := 'baz buzz'
data := "--------------------------$boundary
Content-Disposition: form-data; name=\"$name\"
$contents
--------------------------$boundary--
"
data := '--$boundary\r
Content-Disposition: form-data; name="$name"\r
\r
$contents\r
--$boundary--\r
'
mut x := http.fetch(
url: 'http://127.0.0.1:$sport/form_echo'
method: .post