Overview
Comment: | OFHTTPRequest: Handle OFInvalidEncodingException due to incorrect reply. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
59a1fd63eb526e7961d4229759b59be2 |
User & Date: | js on 2012-03-08 18:04:33 |
Other Links: | manifest | tags |
Context
2012-03-08
| ||
23:20 | Add +[OFFile sizeOfFile:]. check-in: 6bcf417920 user: js tags: trunk | |
18:04 | OFHTTPRequest: Handle OFInvalidEncodingException due to incorrect reply. check-in: 59a1fd63eb user: js tags: trunk | |
16:30 | OFHTTPRequest: HTTP/1.1 introduces 307, handle it. check-in: 9dd8014c27 user: js tags: trunk | |
Changes
Modified src/OFHTTPRequest.m from [96bd1084f3] to [65e7fe1190].
︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | + + | #import "OFURL.h" #import "OFTCPSocket.h" #import "OFDictionary.h" #import "OFDataArray.h" #import "OFAutoreleasePool.h" #import "OFHTTPRequestFailedException.h" #import "OFInvalidEncodingException.h" #import "OFInvalidFormatException.h" #import "OFInvalidServerReplyException.h" #import "OFOutOfRangeException.h" #import "OFTruncatedDataException.h" #import "OFUnsupportedProtocolException.h" #import "macros.h" |
︙ | |||
272 273 274 275 276 277 278 | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | + - + + + + + - + - + + + + + + + + + + + + + + | /* Work around a bug in lighttpd, see above */ [sock flushWriteBuffer]; [sock setBuffersWrites: NO]; if (requestType == OF_HTTP_REQUEST_TYPE_POST) [sock writeString: queryString]; @try { |
︙ | |||
358 359 360 361 362 363 364 | 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | + - + + + + + + + - + + + + + + | @try { OFAutoreleasePool *pool2 = [[OFAutoreleasePool alloc] init]; if (chunked) { for (;;) { size_t pos, toRead; @try { |
︙ | |||
389 390 391 392 393 394 395 | 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 | + - + + + + + + + | bytesReceived += length; [data addNItems: length fromCArray: buffer]; toRead -= length; } @try { |
︙ |