mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
8acca17ad9
commit
4423274d5b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue