Skip to content

Commit

Permalink
Fix webclient missing polyfill (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jun 14, 2024
1 parent 4cd4e92 commit d2a674f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class CopyArtifactJenkinsRule extends JenkinsRule {
* This happens when accessing build page of a project with parameters.
*/
public JenkinsRule.WebClient createAllow405WebClient() {
return new JenkinsRule.WebClient() {
WebClient webClient = new WebClient() {
private static final long serialVersionUID = 2209855651713458482L;

@Override
Expand All @@ -84,6 +84,8 @@ public void printContentIfNecessary(WebResponse webResponse) {
super.printContentIfNecessary(webResponse);
}
};
webClient.getOptions().setFetchPolyfillEnabled(true);
return webClient;
}

/**
Expand Down

0 comments on commit d2a674f

Please sign in to comment.