mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-26 19:46:43 +02:00
Add Content-Type: text/plain
header to custom transports' error responses
This commit is contained in:
@@ -122,7 +122,7 @@ func respNotFound(req *http.Request, msg string) *http.Response {
|
||||
Proto: "HTTP/1.0",
|
||||
ProtoMajor: 1,
|
||||
ProtoMinor: 0,
|
||||
Header: make(http.Header),
|
||||
Header: http.Header{"Content-Type": {"text/plain"}},
|
||||
ContentLength: int64(len(msg)),
|
||||
Body: io.NopCloser(strings.NewReader(msg)),
|
||||
Close: false,
|
||||
|
Reference in New Issue
Block a user