Overview
Comment: | OFHTTPClient: Small fixes. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
634a1461f81a54ae0e78aa12e1ef5cb6 |
User & Date: | js on 2012-12-11 12:27:21 |
Other Links: | manifest | tags |
Context
2012-12-11
| ||
12:32 | OFHTTPServer: Small fixes. check-in: e0c2d4af24 user: js tags: trunk | |
12:27 | OFHTTPClient: Small fixes. check-in: 634a1461f8 user: js tags: trunk | |
12:22 | configure: Only add -no-integrated-as for Clang. check-in: 20a020da0e user: js tags: trunk | |
Changes
Modified src/OFHTTPClient.m from [0b0b833434] to [27860baf5d].
︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #define OF_HTTP_CLIENT_M #include <string.h> #include <ctype.h> #import "OFHTTPClient.h" #import "OFHTTPRequest.h" #import "OFString.h" |
︙ | ︙ | |||
41 42 43 44 45 46 47 | #import "autorelease.h" #import "macros.h" Class of_http_client_tls_socket_class = Nil; static OF_INLINE void | | > | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #import "autorelease.h" #import "macros.h" Class of_http_client_tls_socket_class = Nil; static OF_INLINE void normalize_key(char *str_) { uint8_t *str = (uint8_t*)str_; BOOL firstLetter = YES; while (*str != '\0') { if (!isalnum(*str)) { firstLetter = YES; str++; continue; |
︙ | ︙ | |||
280 281 282 283 284 285 286 287 288 289 290 291 292 293 | normalize_key(keyC); @try { key = [OFString stringWithUTF8StringNoCopy: keyC freeWhenDone: YES]; } @catch (id e) { free(keyC); } do { tmp++; } while (*tmp == ' '); value = [OFString stringWithUTF8String: tmp]; | > | 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | normalize_key(keyC); @try { key = [OFString stringWithUTF8StringNoCopy: keyC freeWhenDone: YES]; } @catch (id e) { free(keyC); @throw e; } do { tmp++; } while (*tmp == ' '); value = [OFString stringWithUTF8String: tmp]; |
︙ | ︙ |