[ https://issues.apache.org/jira/browse/THRIFT-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15192236#comment-15192236 ]
Hudson commented on THRIFT-3734: -------------------------------- SUCCESS: Integrated in Thrift-precommit #304 (See [https://builds.apache.org/job/Thrift-precommit/304/]) THRIFT-3734 D To compare two string as lowercase. (nsuke: [https://github.com/apache/thrift/commit/f9867ed19e2c6d71be45c4753164d3a1aa1989ec]) * lib/d/src/thrift/transport/http.d > 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)