-[NSURLResponse expectedContentLength] returns -1
-[NSURLResponse expectedContentLength] returns -1
- Subject: -[NSURLResponse expectedContentLength] returns -1
- From: Jonathan del Strother <email@hidden>
- Date: Wed, 18 Oct 2006 18:30:06 +0100
-[NSURLResponse expectedContentLength] on files from my Apache2.2 web
server always returns -1.
Here's the headers:
curl -I http://myhost.com/favicon.ico
HTTP/1.1 200 OK
Date: Wed, 18 Oct 2006 17:25:43 GMT
Server: Apache/2.2.2 (Unix) DAV/2 SVN/1.4.0
Last-Modified: Mon, 09 Oct 2006 16:03:33 GMT
ETag: "5062e6a-37e-f6b29f40"
Accept-Ranges: bytes
Content-Length: 894
Content-Type: image/x-icon
Why can't NSURLResponse figure out the content length from that?
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden