Skip to content

Commit d1d03f6

Browse files
authored
Set a text/plain content-type on log text (#742)
1 parent d2bb0aa commit d1d03f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/jenkins/plugins/pipelinegraphview/consoleview/PipelineConsoleViewAction.java

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ protected JSONObject getAllSteps() throws IOException {
127127
"Doesn't seem to matter in practice, docs aren't clear on how to handle and most places ignore it")
128128
public void getConsoleText(StaplerRequest2 req, StaplerResponse2 rsp) throws IOException {
129129
String nodeId = req.getParameter("nodeId");
130+
131+
rsp.setContentType("text/plain");
132+
130133
if (nodeId == null) {
131134
logger.error("'consoleText' was not passed 'nodeId'.");
132135
rsp.getWriter().write("Error getting console text\n");

0 commit comments

Comments
 (0)