use strlen to get length of string

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39874 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-06-17 17:03:13 +00:00
parent 8acca17ad9
commit 4423274d5b

View file

@ -1509,9 +1509,9 @@ static NSURLProtocol *placeholder = nil;
@"Content-Type"] == nil)
{
/* On MacOSX, this is automatically added to POST methods */
static char ct[]
static char *ct
= "Content-Type: application/x-www-form-urlencoded\r\n";
[m appendBytes: ct length: sizeof(ct)];
[m appendBytes: ct length: strlen(ct)];
}
if ([this->request valueForHTTPHeaderField: @"Host"] == nil)
{