1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

Nothing special here - set the ability to set a virtual scheme for the server, used inside global tmpl helper funcs

This commit is contained in:
Gerasimos Maropoulos
2016-07-26 21:50:14 +03:00
parent 8288161b30
commit 81019aa90d
3 changed files with 14 additions and 4 deletions

View File

@@ -798,10 +798,7 @@ func (s *Framework) URL(routeName string, args ...interface{}) (url string) {
return
}
srv := s.Servers.Main()
scheme := "http://"
if srv.IsSecure() {
scheme = "https://"
}
scheme := s.Servers.Main().Scheme()
host := srv.Host()
arguments := args[0:]