You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/05/22 08:25:44 UTC
[maven-dist-tool] branch master updated: Seems like Jsoup has a
default limit (2Mb), whereas Jenkins pages can be bigger,
especially when there's a huge queue.
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new bcad57a Seems like Jsoup has a default limit (2Mb), whereas Jenkins pages can be bigger, especially when there's a huge queue.
bcad57a is described below
commit bcad57ae5d14e9b2f95a22bb033c4faecb07066d
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri May 22 10:25:31 2020 +0200
Seems like Jsoup has a default limit (2Mb), whereas Jenkins pages can be bigger, especially when there's a huge queue.
---
src/main/java/org/apache/maven/dist/tools/JsoupRetry.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/dist/tools/JsoupRetry.java b/src/main/java/org/apache/maven/dist/tools/JsoupRetry.java
index 60f374d..04eb395 100644
--- a/src/main/java/org/apache/maven/dist/tools/JsoupRetry.java
+++ b/src/main/java/org/apache/maven/dist/tools/JsoupRetry.java
@@ -40,7 +40,7 @@ public class JsoupRetry
{
try
{
- return Jsoup.connect( url ).get();
+ return Jsoup.connect( url ).userAgent( "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0" ).maxBodySize( 0 ).get();
}
catch ( IOException ioe )
{