Skip to content

Commit edaca95

Browse files
committed
fix: add response in playbook log
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
1 parent 64af8e8 commit edaca95

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/web/handler/playbook.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ func (h *PlaybookHandler) Log(request *restful.Request, response *restful.Respon
227227
}
228228
defer file.Close()
229229

230-
response.AddHeader("Content-Type", "text/plain; charset=utf-8")
230+
// response.AddHeader("Content-Type", "text/plain; charset=utf-8")
231+
response.AddHeader("Content-Type", "text/plain")
232+
response.AddHeader("X-Content-Type-Options", "nosniff")
231233
writer := response.ResponseWriter
232234
flusher, ok := writer.(http.Flusher)
233235
if !ok {

0 commit comments

Comments
 (0)