1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-06 00:16:12 +00:00

{{ url }} prepends with the listening address and not the real host

This commit is contained in:
Makis Maropoulos
2016-06-07 20:54:34 +03:00
parent 721e9ef66f
commit 2da67206c8
2 changed files with 16 additions and 2 deletions

View File

@@ -223,8 +223,7 @@ func (r *Route) ParseURI(args ...interface{}) (uri string) {
scheme = "https://"
}
host := r.station.server.Host()
host := r.station.server.VirtualHost()
arguments := args[0:]
// join arrays as arguments