mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-08 11:45:55 +00:00
fix a warning
This commit is contained in:
parent
df1d329904
commit
b0da683d1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue