From 5f76942b52de05bdb53693157b52b0a8af44c5c4 Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Tue, 26 Jul 2016 21:53:52 +0300 Subject: [PATCH] no need to duplicate ourselves --- iris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iris.go b/iris.go index e241268a..6e0bdc08 100644 --- a/iris.go +++ b/iris.go @@ -798,7 +798,7 @@ func (s *Framework) URL(routeName string, args ...interface{}) (url string) { return } srv := s.Servers.Main() - scheme := s.Servers.Main().Scheme() + scheme := srv.Scheme() host := srv.Host() arguments := args[0:]