Overview
Comment: | Fix a stupid bug in OFHTTPRequest. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
70e1297f872b0d471346af8367d982ec |
User & Date: | js on 2011-02-25 15:22:55 |
Other Links: | manifest | tags |
Context
2011-02-25
| ||
16:05 | OFHTTPRequest: Send a proper request in case path is nil. check-in: 7b6a706687 user: js tags: trunk | |
15:22 | Fix a stupid bug in OFHTTPRequest. check-in: 70e1297f87 user: js tags: trunk | |
12:14 | OFHTTPRequest: Check Content-Length if present to check for truncation. check-in: 9e647a2ddd user: js tags: trunk | |
Changes
Modified src/OFHTTPRequest.m from [be1d7818d7] to [063245d810].
︙ | ︙ | |||
35 36 37 38 39 40 41 | } - init { self = [super init]; requestType = OF_HTTP_REQUEST_TYPE_GET; | | | | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | } - init { self = [super init]; requestType = OF_HTTP_REQUEST_TYPE_GET; headers = [[OFDictionary alloc] initWithObject: @"Something using ObjFW " @"<https://webkeks.org/objfw/>" forKey: @"User-Agent"]; return self; } - (void)dealloc { [URL release]; |
︙ | ︙ | |||
258 259 260 261 262 263 264 | redirects - 1]; } [s_headers setObject: value forKey: key]; } | | | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | redirects - 1]; } [s_headers setObject: value forKey: key]; } data = [sock readDataArrayTillEndOfStream]; if ([s_headers objectForKey: @"Content-Length"] != nil) { intmax_t cl; cl = [[s_headers objectForKey: @"Content-Length"] decimalValue]; |
︙ | ︙ |