mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-22 19:21:23 +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
15dca67fa5
commit
cdd4789b1d
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>
|
2005-03-18 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||||
* GSWeb.framework/NSString+HTML.m
|
* GSWeb.framework/NSString+HTML.m
|
||||||
o fixes in GSWMemMove and
|
o fixes in GSWMemMove and
|
||||||
|
|
|
@ -1835,6 +1835,7 @@ RCS_ID("$Id$")
|
||||||
NSDictionary* headers=nil;
|
NSDictionary* headers=nil;
|
||||||
NSEnumerator* enumerator=nil;
|
NSEnumerator* enumerator=nil;
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
|
NSStringEncoding e;
|
||||||
|
|
||||||
formValues=(NSMutableDictionary*)[NSMutableDictionary dictionary];
|
formValues=(NSMutableDictionary*)[NSMutableDictionary dictionary];
|
||||||
|
|
||||||
|
@ -1857,7 +1858,18 @@ RCS_ID("$Id$")
|
||||||
parser=[GSMimeParser mimeParser];
|
parser=[GSMimeParser mimeParser];
|
||||||
[parser parse:headersData];
|
[parser parse:headersData];
|
||||||
[parser expectNoHeaders];
|
[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])
|
if ([parser parse:_contentData])
|
||||||
[parser parse:nil];
|
[parser parse:nil];
|
||||||
NSDebugMLLog(@"requests",@"[parser isComplete]=%d",[parser isComplete]);
|
NSDebugMLLog(@"requests",@"[parser isComplete]=%d",[parser isComplete]);
|
||||||
|
|
Loading…
Reference in a new issue