Revision 58458
Added by Andreas Czerniak almost 4 years ago
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()); |
Also available in: Unified diff
DownloadWorker: add user-agent, v2.2.5-SNAPSHOT