Skip to content
Permalink
Browse files
JCLOUDS-1028: Configure idempotent methods
Enable for Glacier.
  • Loading branch information
gaul committed Jun 15, 2016
1 parent 1a56373 commit 057824ff7b943264ac9665fcb9f75a97e029e62b
Showing 1 changed file with 2 additions and 0 deletions.
@@ -16,6 +16,7 @@
*/
package org.jclouds.glacier;

import static org.jclouds.Constants.PROPERTY_IDEMPOTENT_METHODS;
import static org.jclouds.aws.reference.AWSConstants.PROPERTY_HEADER_TAG;
import static org.jclouds.reflect.Reflection2.typeToken;

@@ -60,6 +61,7 @@ protected GlacierApiMetadata(Builder builder) {
public static Properties defaultProperties() {
Properties properties = BaseHttpApiMetadata.defaultProperties();
properties.setProperty(PROPERTY_HEADER_TAG, GlacierHeaders.DEFAULT_AMAZON_HEADERTAG);
properties.setProperty(PROPERTY_IDEMPOTENT_METHODS, "DELETE,GET,HEAD,OPTIONS,POST,PUT");
return properties;
}

0 comments on commit 057824f

Please sign in to comment.