src/main/scala/s3/website/CloudFront.scala in s3_website-2.12.1 vs src/main/scala/s3/website/CloudFront.scala in s3_website-2.12.2
- old
+ new
@@ -120,10 +120,10 @@
new URI("http", "cloudfront", invalidationPath, "")
.toURL
.getPath
.replaceAll("'", URLEncoder.encode("'", "UTF-8")) // CloudFront does not accept ' in invalidation path
.flatMap(chr => {
- if (Seq("ä", "ö", "ü").contains(chr.toString.toLowerCase))
+ if (("[^\\x00-\\x7F]".r findFirstIn chr.toString).isDefined)
URLEncoder.encode(chr.toString, "UTF-8")
else
chr.toString
})