diff --git a/pom.xml b/pom.xml
index 168c11e..f24c8c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,12 +59,12 @@
com.sun.jersey
jersey-client
- 1.5
+ 1.12
com.sun.jersey
jersey-json
- 1.5
+ 1.12
javax.ws.rs
@@ -103,8 +103,8 @@
com.sun.jersey
- jersey-server
- 1.5
+ jersey-grizzly
+ 1.12
test
diff --git a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java
index 48d6a8d..73e25c6 100644
--- a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java
+++ b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java
@@ -144,7 +144,7 @@ public void destroy(){
}
@Override
- protected void finalize(){
+ protected void finalize() throws Throwable{
try {
// Do not close the AHCClient.
super.destroy();
diff --git a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java
index 9684d54..8a9e9eb 100644
--- a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java
+++ b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java
@@ -78,7 +78,7 @@ private void configureHeaders(MultivaluedMap metadata, RequestBu
if (String.class.isAssignableFrom( o.getClass() )) {
requestBuilder.addHeader(e.getKey(), o.toString());
} else {
- requestBuilder.addHeader(e.getKey(), headerValueToString(o));
+ requestBuilder.addHeader(e.getKey(), ClientRequest.getHeaderValue(o));
}
}
}