Permalink
Browse files

another possible fix for GH-84

  • Loading branch information...
1 parent 3b3a391 commit ece2c0fd10fa4f0d6f337d37c728f438d0fc92d0 @buzztroll buzztroll committed Dec 22, 2011
@@ -430,6 +430,13 @@ public DescribeImagesResponseType handleGet(
final List<String> imageNames =
getParameterList(uriInfo, "ImageId");
+ return this.handle(executableBy, owner, imageNames);
+ }
+
+ private DescribeImagesResponseType handle(String executableBy,
+ String owner,
+ List<String> imageNames) {
+
final DescribeImagesType request = new DescribeImagesType();
if (executableBy != null) {
@@ -473,8 +480,12 @@ public DescribeImagesResponseType handleGet(
public DescribeImagesResponseType handlePost(
@FormParam("ExecutableBy") String executableBy,
@FormParam("Owner") String owner,
- @Context UriInfo uriInfo) {
- return handleGet(executableBy, owner, uriInfo);
+ MultivaluedMap<String,String> formParams) {
+
+ final List<String> imageNames =
+ getParameterList(formParams, "ImageId");
+
+ return this.handle(executableBy, owner, imageNames);
}
}

0 comments on commit ece2c0f

Please sign in to comment.