Am 18.12.2008 um 20:22 schrieb Andrew Lindesay:
I have figured out that NSURLConnection is decompressing data when the header "Content-Encoding" is equal to "gzip". Fair enough and probably quite handy, but I would like to stop it doing this as I would like to show a progress bar for a download and if the data is being automatically decompressed then I can't see how far through the process it is. Is there a means to repress the automatic decompression of this data as it comes down?
Take a look at NSURLDownload's delegate download:shouldDecodeSourceDataOfMIMEType:
Setting your MIMEType to @"gzip" and returning NO should to the trick. Cheers, Knut _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com