Differences From Artifact [3104ed8898]:
- File
src/OFHTTPServer.m
— part of check-in
[1724525754]
at
2014-02-11 14:44:03
on branch trunk
— OFHTTPServer: Allow binding to port 0
This allows binding to a random port and calling [server port] to get
the port used. (user: js, size: 15386) [annotate] [blame] [check-ins using]
To Artifact [48d8bdc4b1]:
- File
src/OFHTTPServer.m
— part of check-in
[2f5af58573]
at
2014-02-13 23:26:17
on branch trunk
— Use -std=c11 instead of -std=gnu11
Not using -std=gnu11 means _GNU_SOURCE does not get defined anymore,
therefore this commit also adds the required feature defines for glibc.Additionally, this adds of_strdup in macros.h, as strdup is an
extension. (user: js, size: 15389) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
141 142 143 144 145 146 147 | return NULL; } } static OF_INLINE OFString* normalizedKey(OFString *key) { | | | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | return NULL; } } static OF_INLINE OFString* normalizedKey(OFString *key) { char *cString = of_strdup([key UTF8String]); uint8_t *tmp = (uint8_t*)cString; bool firstLetter = true; if (cString == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: strlen([key UTF8String])]; |
︙ | ︙ |