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
2009-12-14 13:58:27 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d48586d05d3d17bd9722863fb30221bb49962546
d48586d0
1 parent
a3b974c6
Fix timeout with blank post body
[#31 state:resolved]
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
d48586d
...
...
@@ -681,7 +681,7 @@ static BOOL isiPhoneOS2;
}
else
{
// If we have a request body, we'll stream it from memory using our custom stream, so that we can measure bandwidth use and it can be bandwidth-throttled if nescessary
if
([
self
postBody
])
{
if
([
self
postBody
]
&&
[[
self
postBody
]
length
]
>
0
)
{
if
([
self
shouldCompressRequestBody
]
&&
[
self
compressedPostBody
])
{
[
self
setPostBodyReadStream
:[
ASIInputStream
inputStreamWithData
:[
self
compressedPostBody
]]];
}
else
if
([
self
postBody
])
{
...
...
@@ -2196,6 +2196,7 @@ static BOOL isiPhoneOS2;
[
rawResponseData
appendBytes
:
buffer
length
:
bytesRead
];
}
}
}
-
(
void
)
handleStreamComplete
...
...
Please
register
or
login
to post a comment