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

add white box tests for transaction, response writer and some of the context's method

Former-commit-id: 67ea92337f120f03e8bb96d3daa43529b10af2f2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-02-17 02:14:46 +02:00
parent bfeabbd74e
commit 57e5b77853
7 changed files with 545 additions and 27 deletions

View File

@@ -398,7 +398,8 @@ func (ctx *Context) Subdomain() (subdomain string) {
return
}
// VirtualHostname returns the hostname that user registers, host path maybe differs from the real which is HostString, which taken from a net.listener
// VirtualHostname returns the hostname that user registers,
// host path maybe differs from the real which is the Host(), which taken from a net.listener
func (ctx *Context) VirtualHostname() string {
realhost := ctx.Host()
hostname := realhost