mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
commit
52cc857d00
1 changed files with 5 additions and 0 deletions
|
|
@ -473,3 +473,8 @@ func (c *Context) ErrorUseHandle(code int) {
|
||||||
c.Abort()
|
c.Abort()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetProtocol 获取当前连接版本
|
||||||
|
func (c *Context) GetProtocol() string {
|
||||||
|
return c.Request.Proto
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue