refactor(amp): consolidate and simplify model mapping debug logs

This commit is contained in:
hkfires
2025-12-06 14:54:38 +08:00
parent 5d12d4ce33
commit 22579155c5
3 changed files with 2 additions and 12 deletions

View File

@@ -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
}