Revision 58458
Added by Andreas Czerniak almost 4 years ago
modules/dnet-download-service/trunk/src/main/java/eu/dnetlib/data/download/worker/DownloadWorker.java | ||
---|---|---|
165 | 165 |
final URLConnection connection = toDownload.openConnection(); |
166 | 166 |
connection.setConnectTimeout(getConnectTimeoutMs()); |
167 | 167 |
connection.setReadTimeout(getReadTimeoutMs()); |
168 |
connection.setRequestProperty("User-Agent", "OpenAIRE aggregation system/2.2.5 ; (OpenAccess aggregator; mailto:helpdesk@openaire.eu) "); |
|
168 | 169 |
|
169 | 170 |
log.debug(threadId + ": getting input stream from " + toDownload); |
170 | 171 |
record.setInputStream(connection.getInputStream()); |
modules/dnet-download-service/trunk/pom.xml | ||
---|---|---|
8 | 8 |
<modelVersion>4.0.0</modelVersion> |
9 | 9 |
<groupId>eu.dnetlib</groupId> |
10 | 10 |
<artifactId>dnet-download-service</artifactId> |
11 |
<version>2.2.4-SNAPSHOT</version>
|
|
11 |
<version>2.2.5-SNAPSHOT</version>
|
|
12 | 12 |
<scm> |
13 | 13 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-download-service/trunk</developerConnection> |
14 | 14 |
</scm> |
Also available in: Unified diff
DownloadWorker: add user-agent, v2.2.5-SNAPSHOT