private static string SyndicateCanonicalResource(RequestMethod requestMethod, string bucket, string path) { var sb = new StringBuilder("/"); if (bucket != null) { sb.Append(bucket); sb.Append("/"); if (path != null) sb.Append(path); if (requestMethod == RequestMethod.ACL_GET || requestMethod == RequestMethod.ACL_SET) sb.Append("?acl"); } return sb.ToString(); }