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
2008-11-17 18:47:18 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7705175886141ad16c278786e7e620b1fab5a1e
b7705175
1 parent
11a50567
Small tweak to fix progress issue when delegate is a UIProgressView (thanks to R…
…oman Busyghin for this fix)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
ASIHTTPRequest.m
ASIHTTPRequest.m
View file @
b770517
...
...
@@ -488,7 +488,7 @@ static NSError *ASIUnableToCreateRequestError;
// We aren't using a queue, we should just set progress of the indicator
}
else
{
[
ASIHTTPRequest
setProgress
:(
double
)(
byteCount
/
postLength
)
forProgressIndicator
:
uploadProgressDelegate
];
[
ASIHTTPRequest
setProgress
:(
double
)(
1
.
0
*
byteCount
/
postLength
)
forProgressIndicator
:
uploadProgressDelegate
];
}
}
...
...
@@ -557,7 +557,7 @@ static NSError *ASIUnableToCreateRequestError;
// We aren't using a queue, we should just set progress of the indicator to 0
}
else
if
(
contentLength
>
0
)
{
[
ASIHTTPRequest
setProgress
:(
double
)(
bytesReadSoFar
/
contentLength
)
forProgressIndicator
:
downloadProgressDelegate
];
[
ASIHTTPRequest
setProgress
:(
double
)(
1
.
0
*
bytesReadSoFar
/
contentLength
)
forProgressIndicator
:
downloadProgressDelegate
];
}
}
...
...
Please
register
or
login
to post a comment