MCPcopy Create free account
hub / github.com/zalando/skipper / ensureUTF8

Function ensureUTF8

proxy/proxy.go:2009–2014  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

2007}
2008
2009func ensureUTF8(s string) string {
2010 if utf8.ValidString(s) {
2011 return s
2012 }
2013 return fmt.Sprintf("invalid utf-8: %q", s)
2014}
2015
2016func (p *Proxy) makeErrorResponse(ctx *context, perr *proxyError) {
2017 ctx.response = &http.Response{

Callers 5

makeBackendRequestMethod · 0.70
injectClientTraceByTagFunction · 0.70
injectClientTraceByEventFunction · 0.70
logKVMethod · 0.70
setTagMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…