Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.3
-
None
Description
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.