Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2010-08-17 20:12:22 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
193ea577a51a1ffa4f86eda2345e8783de15e5e4
193ea577
1 parent
777aba32
Fixes, all tests except slightly broken ones now pass with shouldWaitToInflateCompressedResponses
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
Classes/ASIDataCompressor.m
Classes/ASIDataDecompressor.m
Classes/ASIHTTPRequest.m
Classes/ASIDataCompressor.m
View file @
193ea57
...
...
@@ -79,6 +79,7 @@
zStream
.
next_in
=
bytes
;
zStream
.
avail_in
=
length
;
zStream
.
avail_out
=
0
;
NSError
*
theError
=
nil
;
NSInteger
bytesProcessedAlready
=
zStream
.
total_out
;
...
...
Classes/ASIDataDecompressor.m
View file @
193ea57
...
...
@@ -76,6 +76,7 @@
zStream
.
next_in
=
bytes
;
zStream
.
avail_in
=
length
;
zStream
.
avail_out
=
0
;
NSError
*
theError
=
nil
;
NSInteger
bytesProcessedAlready
=
zStream
.
total_out
;
...
...
Classes/ASIHTTPRequest.m
View file @
193ea57
...
...
@@ -24,7 +24,7 @@
#import "ASIDataCompressor.h"
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-4
2
2010-08-17"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-4
3
2010-08-17"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -2786,6 +2786,8 @@ static NSOperationQueue *sharedQueue = nil;
[[
self
postBodyReadStream
]
close
];
[
self
setPostBodyReadStream
:
nil
];
[
self
setDataDecompressor
:
nil
];
NSError
*
fileError
=
nil
;
// Delete up the request body temporary file, if it exists
...
...
@@ -2802,7 +2804,7 @@ static NSOperationQueue *sharedQueue = nil;
[[
self
inflatedFileDownloadOutputStream
]
close
];
[
self
setInflatedFileDownloadOutputStream
:
nil
];
// If we are going to redirect and we are resuming, let's ignore this download
if
([
self
shouldRedirect
]
&&
[
self
needsRedirect
]
&&
[
self
allowResumeForFileDownloads
])
{
...
...
Please
register
or
login
to post a comment