[ https://issues.apache.org/jira/browse/THRIFT-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194768#comment-15194768 ]
Hudson commented on THRIFT-3734: -------------------------------- SUCCESS: Integrated in Thrift-precommit #315 (See [https://builds.apache.org/job/Thrift-precommit/315/]) follow-up: THRIFT-3734 update test/known_failures.json (nsukeg: [https://github.com/apache/thrift/commit/e364081f821ecde15c22c7a28d7f76818b816614]) * test/known_failures_Linux.json > To compare two string as lowercase. > ----------------------------------- > > Key: THRIFT-3734 > URL: https://issues.apache.org/jira/browse/THRIFT-3734 > Project: Thrift > Issue Type: Bug > Components: D - Library > Affects Versions: 0.9.3 > Reporter: WangYaofu > Assignee: WangYaofu > Fix For: 0.10.0 > > > static bool compToLower(ubyte a, ubyte b) { > return a == toLower(cast(char)b); > } > it looks unexpected result got when parameter a is uppercase and b is > lowercase. > if (startsWith!compToLower(split[0], cast(ubyte[])"content-length")) { > ... > } > split[0] is string of 'Content-Length', it contains character with uppercase. -- This message was sent by Atlassian JIRA (v6.3.4#6332)