jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds] Remove strings2 replaceall (#21)
Date Sat, 01 Jun 2013 03:40:14 GMT
> @@ -149,8 +146,8 @@ private void appendCanonicalizedHeaders(HttpRequest request, StringBuilder
toSig
>              // replacing any
>              // newline characters and extra embedded white spaces in the value.
>              for (String value : request.getHeaders().get(header)) {
> -               value = Strings2.replaceAll(value, TWO_SPACE_PATTERN, " ");
> -               value = Strings2.replaceAll(value, NEWLINE_PATTERN, "");
> +               value = value.replace("  ", " ");

Matches existing behavior.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/21/files#r4488280

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message