pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
http://allseeing-i.com/ASIHTTPRequest
Other
5.78k stars 1.41k forks source link

ASIHTTPRequest cache issues #324

Open pronebird opened 12 years ago

pronebird commented 12 years ago

Hi,

I noticed that latest ASIHTTPRequest has cache problems. I create a file download request which should save file in request.downloadDestinationPath (I also use temporary file at the same path + ".download") and allow to resume download. However what happens when file is downloaded+cached is that ASIHTTPRequest doesn't copy file from cache to downloadDestinationPath. Instead of that it changes downloadDestinationPath to cached file path in /Library/Caches/ASIHTTPRequestCache/SessionStore/...

This bug supposed to be easy reproducible, it's just enough to download exactly the same file twice. First time file successfully copied, second time it's not.