This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/rest/rest-sqs/src/main/scala/org/elasticmq/rest/sqs/SQSRestServerBuilder.scala | |
+++ b/rest/rest-sqs/src/main/scala/org/elasticmq/rest/sqs/SQSRestServerBuilder.scala | |
@@ -243,7 +243,7 @@ object MD5Util { | |
def md5Digest(s: String) = { | |
val md5 = MessageDigest.getInstance("MD5") | |
md5.reset() | |
- md5.update(s.getBytes) | |
+ md5.update(s.getBytes("UTF-8")) | |
md5.digest().map(0xFF & _).map { "%02x".format(_) }.foldLeft(""){_ + _} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gistup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gistup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
class Pipe: | |
def __init__(self): | |
self.prev = self | |
def __iter__(self): | |
return self | |
def __next__(self): |