Differences From Artifact [eb56a06a9a]:
- File src/OFHTTPServer.m — part of check-in [3acdce88f5] at 2016-03-20 15:24:08 on branch trunk — OFHTTPServer: Delegate for client socket exception (user: js, size: 16459) [annotate] [blame] [check-ins using]
To Artifact [b9d140020a]:
- File
src/OFHTTPServer.m
— part of check-in
[09a0d12bae]
at
2016-06-05 21:17:57
on branch trunk
— Always cast to unsigned char for to{upper,lower}()
This is required as passing something signed to it is an error on
NetBSD, but passing anything else than a char is undefined on Linux. (user: js, size: 16471) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
142 143 144 145 146 147 148 |
}
}
static OF_INLINE OFString*
normalizedKey(OFString *key)
{
char *cString = of_strdup([key UTF8String]);
| | | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
}
}
static OF_INLINE OFString*
normalizedKey(OFString *key)
{
char *cString = of_strdup([key UTF8String]);
unsigned char *tmp = (unsigned char*)cString;
bool firstLetter = true;
if (cString == NULL)
@throw [OFOutOfMemoryException
exceptionWithRequestedSize: strlen([key UTF8String])];
while (*tmp != '\0') {
|
| ︙ | ︙ |