Skip to content

Commit

Permalink
Merge pull request #189 from jglick/commons-fileupload
Browse files Browse the repository at this point in the history
Update commons-fileupload to match that used in Jenkins
  • Loading branch information
jglick authored Jun 15, 2020
2 parents b7f1b76 + 4949d30 commit 6bb6358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<!-- perhaps mark this dependency optional? -->
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
<version>1.3.1-jenkins-2</version>
</dependency>
<!-- optional REST support -->
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions core/src/test/java/org/kohsuke/stapler/RequestImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public String getCharacterEncoding() {
return "UTF-8";
}
@Override
public String getHeader(String name) {
// FILEUPLOAD-195/FILEUPLOAD-228: ignore FileUploadBase.CONTENT_LENGTH
return null;
}
@Override
public int getContentLength() {
return buf.length;
}
Expand Down

0 comments on commit 6bb6358

Please sign in to comment.