提交 8dea7d9b 编写于 作者: T tfennelly

Security177Test compiling against HtmlUnit 2.17

上级 c2491f91
......@@ -20,7 +20,7 @@ public class Security177Test {
@Test
public void nosniff() throws Exception {
WebClient wc = jenkins.createWebClient();
wc.setThrowExceptionOnFailingStatusCode(false);
wc.getOptions().setThrowExceptionOnFailingStatusCode(false);
URL u = jenkins.getURL();
verifyNoSniff(wc.getPage(new URL(u, "adjuncts/507db12b/nosuch/adjunct.js")));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册