From 228486555c8acfcdf4ec801ac85886002dd73e46 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 28 Jul 2020 12:34:08 +0300 Subject: [PATCH] http: add pub to Method.str() --- vlib/net/http/method.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/http/method.v b/vlib/net/http/method.v index 8353a4a0ca..0b3d786306 100644 --- a/vlib/net/http/method.v +++ b/vlib/net/http/method.v @@ -18,7 +18,7 @@ pub enum Method { patch } -fn (m Method) str() string { +pub fn (m Method) str() string { return match m { .get { 'GET' } .post { 'POST' }