Release v1.4.3

This commit is contained in:
lutc5
2026-04-30 18:20:04 +08:00
parent a2f777a1a8
commit a02fd51c19
24 changed files with 1909 additions and 1176 deletions

View File

@@ -1400,9 +1400,6 @@ func redactRecordedValue(value any) any {
if looksLikeImagePayload(typed) {
return imageRedaction(typed)
}
if len(typed) > 12000 {
return typed[:12000] + "... [truncated]"
}
return typed
default:
return typed
@@ -1443,11 +1440,7 @@ func mustMarshalJSON(value any) []byte {
}
func truncateRecordedString(value string) string {
const maxRecordedBody = 120000
if len(value) <= maxRecordedBody {
return value
}
return value[:maxRecordedBody] + "... [truncated]"
return value
}
func withCORS(next http.Handler) http.Handler {