mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-06-13 15:47:38 +08:00
fix(reverseproxy): align forwarding and tunnel semantics
This commit is contained in:
parent
c019f24e99
commit
ed44c592d3
6 changed files with 864 additions and 26 deletions
2
respw.go
2
respw.go
|
|
@ -113,7 +113,7 @@ func (rw *responseWriterImpl) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
|||
// 尝试从底层 ResponseWriter 获取 Hijacker 接口
|
||||
hj, ok := rw.ResponseWriter.(http.Hijacker)
|
||||
if !ok {
|
||||
return nil, nil, errors.New("http.Hijacker interface not supported")
|
||||
return nil, nil, http.ErrNotSupported
|
||||
}
|
||||
|
||||
// 调用底层的 Hijack 方法
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue