提交 f7006b46 编写于 作者: J Jesse Glick

Jetty 9.4.3.v20170317 refuses to set an empty HTTP header, leading to cryptic...

Jetty 9.4.3.v20170317 refuses to set an empty HTTP header, leading to cryptic client errors since Hudson-Duplex is missing.
上级 7f633dee
......@@ -153,7 +153,7 @@ public abstract class FullDuplexHttpService {
// the actual authentication for the connecting Channel is done by CLICommand
UUID uuid = UUID.fromString(req.getHeader("Session"));
rsp.setHeader("Hudson-Duplex", ""); // set the header so that the client would know
rsp.setHeader("Hudson-Duplex", "true"); // set the header so that the client would know
if (req.getHeader("Side").equals("download")) {
FullDuplexHttpService service = createService(req, uuid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册