Fix a logic bug in the respondRaw function (#3491)

This commit is contained in:
Brian Kassouf 2017-10-26 00:08:10 -07:00 committed by GitHub
parent 03cd40345f
commit 6c35cb9a72

View file

@ -212,7 +212,7 @@ func respondRaw(w http.ResponseWriter, r *http.Request, resp *logical.Response)
// Get the content type header; don't require it if the body is empty // Get the content type header; don't require it if the body is empty
contentTypeRaw, ok := resp.Data[logical.HTTPContentType] contentTypeRaw, ok := resp.Data[logical.HTTPContentType]
if !ok && !nonEmpty { if !ok && nonEmpty {
retErr(w, "no content type given") retErr(w, "no content type given")
return return
} }