mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Merge pull request #596 from robintaylor/DS-2091
DS-2091 Upgrade HttpComponents to 4.3.5
This commit is contained in:
@@ -446,7 +446,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
<artifactId>httpclient</artifactId>
|
<artifactId>httpclient</artifactId>
|
||||||
<version>4.2.1</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.solr</groupId>
|
<groupId>org.apache.solr</groupId>
|
||||||
|
@@ -175,9 +175,7 @@ public class EZIDRequest
|
|||||||
request = new HttpPut(uri);
|
request = new HttpPut(uri);
|
||||||
if (null != metadata)
|
if (null != metadata)
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
request.setEntity(new StringEntity(formatMetadata(metadata), UTF_8));
|
request.setEntity(new StringEntity(formatMetadata(metadata), UTF_8));
|
||||||
} catch (UnsupportedEncodingException ex) { /* SNH */ }
|
|
||||||
}
|
}
|
||||||
HttpResponse response = client.execute(request);
|
HttpResponse response = client.execute(request);
|
||||||
return new EZIDResponse(response);
|
return new EZIDResponse(response);
|
||||||
|
5
pom.xml
5
pom.xml
@@ -1000,6 +1000,11 @@
|
|||||||
<artifactId>commons-httpclient</artifactId>
|
<artifactId>commons-httpclient</artifactId>
|
||||||
<version>3.1</version>
|
<version>3.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpclient</artifactId>
|
||||||
|
<version>4.3.5</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>jcl-over-slf4j</artifactId>
|
<artifactId>jcl-over-slf4j</artifactId>
|
||||||
|
Reference in New Issue
Block a user