Permalink
Browse files

Move to Async HTTP Client 1.7.8

  • Loading branch information...
1 parent c5c0b81 commit 5f8ede12752e2aaac54f65f37be7bced017c6a55 @dadoonet dadoonet committed Dec 30, 2012
Showing with 4 additions and 12 deletions.
  1. +1 −1 pom.xml
  2. +3 −11 src/main/java/net/linkfluence/jspore/Method.java
View
@@ -18,7 +18,7 @@
<dependency>
<groupId>com.ning</groupId>
<artifactId>async-http-client</artifactId>
- <version>1.6.5</version>
+ <version>1.7.8</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
@@ -9,18 +9,11 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.ning.http.client.RequestBuilder;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
+
+import java.util.*;
import java.util.Map.Entry;
-import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.jboss.netty.handler.codec.http.HttpResponseStatus;
/**
* Describe a route specification.
@@ -171,8 +164,7 @@ public Builder(String name, String path, String httpMethod) {
}
public Builder addExpectedStatus(int status) {
- HttpResponseStatus s = HttpResponseStatus.valueOf(status);
- expectedStatus.add(s.getCode());
+ expectedStatus.add(status);
return this;
}

0 comments on commit 5f8ede1

Please sign in to comment.