RestKit/RestKit — Issue #511: Does RestKit support GZip?
Author: haemi
Created: 2012-01-19 17:01:05+00:00
State: open

Hello,

I'm using the following line to configure RestKit:

[[RKClient sharedClient] setValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"];

Nevertheless I get the following HeaderFields back from the Server:

(gdb) po [[objectLoader response] allHeaderFields]
{
Connection = "Keep-Alive";
"Content-Type" = "application/json";
Date = "Thu, 19 Jan 2012 16:54:00 GMT";
"Keep-Alive" = "timeout=5, max=98";
Server = Apache;
"Transfer-Encoding" = Identity;
}

Does RestKit support GZip? If yes - what am I doing wrong?

Thanks a lot,

Stefan