mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
refactor(amp): consolidate and simplify model mapping debug logs
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package amp
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -98,11 +96,3 @@ func (rw *ResponseRewriter) rewriteStreamChunk(chunk []byte) []byte {
|
||||
|
||||
return bytes.Join(lines, []byte("\n"))
|
||||
}
|
||||
|
||||
// Hijack implements http.Hijacker for WebSocket support
|
||||
func (rw *ResponseRewriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
||||
if hijacker, ok := rw.ResponseWriter.(http.Hijacker); ok {
|
||||
return hijacker.Hijack()
|
||||
}
|
||||
return nil, nil, http.ErrNotSupported
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user