Merge pull request #596 from robintaylor/DS-2091

DS-2091 Upgrade HttpComponents to 4.3.5
This commit is contained in:
Robin Taylor
2014-08-11 09:27:37 +01:00
3 changed files with 6 additions and 4 deletions

View File

@@ -446,7 +446,6 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>

View File

@@ -175,9 +175,7 @@ public class EZIDRequest
request = new HttpPut(uri);
if (null != metadata)
{
try {
request.setEntity(new StringEntity(formatMetadata(metadata), UTF_8));
} catch (UnsupportedEncodingException ex) { /* SNH */ }
request.setEntity(new StringEntity(formatMetadata(metadata), UTF_8));
}
HttpResponse response = client.execute(request);
return new EZIDResponse(response);

View File

@@ -1000,6 +1000,11 @@
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>