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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user