mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-27 15:07:44 +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];
|
[request setValue:headers[key] forHTTPHeaderField:key];
|
||||||
}
|
}
|
||||||
if (data) {
|
if (data) {
|
||||||
[request setValue:[NSString stringWithFormat:@"%lu", [data length]] forHTTPHeaderField:@"Content-Length"];
|
[request setValue:[NSString stringWithFormat:@"%@", @([data length])] forHTTPHeaderField:@"Content-Length"];
|
||||||
[request setHTTPBody:data];
|
[request setHTTPBody:data];
|
||||||
}
|
}
|
||||||
return request;
|
return request;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue