Use -mimeDocument method rather than -document

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13716 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-05-27 08:52:09 +00:00
parent 4a42e431f2
commit 856ecc2631
2 changed files with 19 additions and 6 deletions

View file

@ -277,7 +277,7 @@ static void debugWrite(NSData *data)
NSString *val;
[p parse: nil];
info = [[p document] headerNamed: @"http"];
info = [[p mimeDocument] headerNamed: @"http"];
val = [info objectForKey: NSHTTPPropertyServerHTTPVersionKey];
if (val != nil)
[pageInfo setObject: val forKey: NSHTTPPropertyServerHTTPVersionKey];
@ -319,7 +319,7 @@ static void debugWrite(NSData *data)
RELEASE(document);
RELEASE(parser);
parser = [GSMimeParser new];
document = RETAIN([parser document]);
document = RETAIN([parser mimeDocument]);
[self beginLoadInBackground];
if (sock != nil)
{