fix a warning

This commit is contained in:
Sami Samhuri 2015-05-03 16:11:05 -07:00
parent df1d329904
commit b0da683d1f

View file

@ -110,7 +110,7 @@ NSString *const JSONHTTPClientErrorDomain = @"JSONHTTPClientErrorDomain";
[request setValue:headers[key] forHTTPHeaderField:key];
}
if (data) {
[request setValue:[NSString stringWithFormat:@"%lu", [data length]] forHTTPHeaderField:@"Content-Length"];
[request setValue:[NSString stringWithFormat:@"%@", @([data length])] forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:data];
}
return request;