mirror of https://github.com/apache/jclouds.git
Issue 210: ec2 content length header was bad. corrected and also updated default appengine test app to allow more time to startup
This commit is contained in:
parent
6c26047e6a
commit
4ee4bb8764
|
@ -99,6 +99,7 @@ public class FormSigner implements HttpRequestFilter, RequestSigner {
|
||||||
"request is not ready to sign; host not present");
|
"request is not ready to sign; host not present");
|
||||||
Multimap<String, String> decodedParams = RestAnnotationProcessor.parseQueryToMap(request
|
Multimap<String, String> decodedParams = RestAnnotationProcessor.parseQueryToMap(request
|
||||||
.getPayload().getRawContent().toString());
|
.getPayload().getRawContent().toString());
|
||||||
|
request.getHeaders().removeAll(HttpHeaders.CONTENT_LENGTH);
|
||||||
addSigningParams(decodedParams);
|
addSigningParams(decodedParams);
|
||||||
validateParams(decodedParams);
|
validateParams(decodedParams);
|
||||||
String stringToSign = createStringToSign(request, decodedParams);
|
String stringToSign = createStringToSign(request, decodedParams);
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
extraction of appengine-java-sdk
|
extraction of appengine-java-sdk
|
||||||
-->
|
-->
|
||||||
<appengine.home>YOUR_APPENGINE_HOME</appengine.home>
|
<appengine.home>YOUR_APPENGINE_HOME</appengine.home>
|
||||||
<appengine.applicationid>jclouds-s3-example</appengine.applicationid>
|
<appengine.applicationid>jclouds-aws-demo</appengine.applicationid>
|
||||||
<devappserver.address>localhost</devappserver.address>
|
<devappserver.address>localhost</devappserver.address>
|
||||||
<devappserver.port>8088</devappserver.port>
|
<devappserver.port>8088</devappserver.port>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class GoogleDevServer {
|
||||||
|
|
||||||
});
|
});
|
||||||
server.start();
|
server.start();
|
||||||
Thread.sleep(10 * 1000);
|
Thread.sleep(15 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
|
|
Loading…
Reference in New Issue