Is iOS removing the Content-MD5 HTTP header? -
i utilize web application that's returning content-md5 header in ios app, cannot retrieve header using [nshttpurlresponse allheaderfields]
(whereas can see when utilize curl).
does know if ios deliberately removing header?
so i've figured out what's happened.
our saas provider has activated gzip default on non-production instances. mentioned in other threads, nsurlconnection supports gzip compression transparently , automatically send accept-encoding: gzip
http header. when response received, nsurlconnection
decompresses content , removes content-md5 header (because content-md5 hash of compressed data), why i'm not seeing in list of received headers.
ios
No comments:
Post a Comment