mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
Tidy to work with current base library and avoid minor overheads.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20940 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
31b00db975
commit
848c80d39c
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-03-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
* GSWeb.framework/GSWRequest.m
|
||||
o cleanup GSMime access and avoid unnecessary setting of
|
||||
charset when the default is OK.
|
||||
|
||||
2005-03-18 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
* GSWeb.framework/NSString+HTML.m
|
||||
o fixes in GSWMemMove and
|
||||
|
|
|
@ -1835,6 +1835,7 @@ RCS_ID("$Id$")
|
|||
NSDictionary* headers=nil;
|
||||
NSEnumerator* enumerator=nil;
|
||||
LOGObjectFnStart();
|
||||
NSStringEncoding e;
|
||||
|
||||
formValues=(NSMutableDictionary*)[NSMutableDictionary dictionary];
|
||||
|
||||
|
@ -1857,7 +1858,18 @@ RCS_ID("$Id$")
|
|||
parser=[GSMimeParser mimeParser];
|
||||
[parser parse:headersData];
|
||||
[parser expectNoHeaders];
|
||||
[parser setDefaultEncoding:[self formValueEncoding]];
|
||||
if ((e = [self formValueEncoding]) != NSISOLatin1StringEncoding)
|
||||
{
|
||||
if (e == NSUTF8StringEncoding)
|
||||
{
|
||||
[parser setDefaultCharset: @"utf-8"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[parser setDefaultCharset:
|
||||
[GSObjCClass(parser) charsetFromEncoding: e]];
|
||||
}
|
||||
}
|
||||
if ([parser parse:_contentData])
|
||||
[parser parse:nil];
|
||||
NSDebugMLLog(@"requests",@"[parser isComplete]=%d",[parser isComplete]);
|
||||
|
|
Loading…
Reference in a new issue