From 8a971c3bf73c19eb0efe6497a18722726dbaf7b1 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 10 Nov 2021 18:41:25 +0200 Subject: [PATCH] ci,vweb: fix hard coded data in vweb_test.v --- vlib/vweb/tests/vweb_test.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/vweb/tests/vweb_test.v b/vlib/vweb/tests/vweb_test.v index 02908f4199..669bd05b5e 100644 --- a/vlib/vweb/tests/vweb_test.v +++ b/vlib/vweb/tests/vweb_test.v @@ -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