1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 03:07:38 +00:00

Parse server's addr before use it

This commit is contained in:
Makis Maropoulos
2016-07-07 17:17:34 +02:00
parent 981fef9ecf
commit e3b2c68085
5 changed files with 100 additions and 56 deletions

View File

@@ -656,7 +656,7 @@ func (s *Framework) URL(routeName string, args ...interface{}) (url string) {
scheme = "https://"
}
host := srv.VirtualHost()
host := srv.Host()
arguments := args[0:]
// join arrays as arguments