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