From 90e04d03b2757b35e26820530625cf1824e29401 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 11 Sep 2021 06:16:00 +0300 Subject: [PATCH] net.http: fix request_test.v --- vlib/net/http/request.v | 2 +- vlib/vweb/request_test.v | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vlib/net/http/request.v b/vlib/net/http/request.v index b94754c191..73bdf38504 100644 --- a/vlib/net/http/request.v +++ b/vlib/net/http/request.v @@ -244,7 +244,7 @@ fn parse_form(body string) map[string]string { // ... } -struct FileData { +pub struct FileData { pub: filename string content_type string diff --git a/vlib/vweb/request_test.v b/vlib/vweb/request_test.v index 5e65e9e4fa..d2e91ed809 100644 --- a/vlib/vweb/request_test.v +++ b/vlib/vweb/request_test.v @@ -1,5 +1,6 @@ module vweb +import net.http import io struct StringReader { @@ -114,9 +115,9 @@ Content-Disposition: form-data; name=\"${names[1]}\" ${contents[1]} --------------------------$boundary-- " - form, files := parse_multipart_form(data, boundary) + form, files := http.parse_multipart_form(data, boundary) assert files == { - names[0]: [FileData{ + names[0]: [http.FileData{ filename: file content_type: ct data: contents[0]