2002-06-03 Manuel Guesdon <mguesdon@orange-concept.com>

* GSWeb.framework/GSWBundle.m:
		o use smartTakeValue:forKey: instead of takeValue:forKey:
	* GSWeb.framework/GSWAssociation.m:
		o use smartTakeValue:forKeyPath: instead of takeValue:forKeyPath:
	* GSWeb.framework/GSWComponent.m:
		o use smartTakeValue:forKey: instead of takeValue:forKey:
	* GSWeb.framework/GSWDisplayGroup.m:
		o changes in -description
		o logs
	* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
		o added "reference"
	* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
		o added "reference"
	* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
		o added "reference"
	* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.h/.m:
		o added "reference"
	* GSWExtensionsGSW.framework/GSWFileUploadComponent.h/.m:
		o bug fixes
	* GSWExtensionsGSW.framework/GSWFileUploadComponent.gswc/GSWFileUploadComponent.gswd:
		o added Height & With parameters for images
	* GSWExtensionsGSW.framework/GSWFileUploadComponent.gswc/GSWFileUploadComponent.html:
		o added delete check box title
	* GSWeb.framework/GSWElement.m:
		o logs
	* GSWeb.framework/GSWFileUpload.m:
		o logs
	* GSWeb.framework/GSWRequest.m:
		o bug fix for uploaded files


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@13762 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2002-06-03 08:27:15 +00:00
parent 893540cdaa
commit 1a474bf60f
19 changed files with 179 additions and 58 deletions

View file

@ -1390,17 +1390,27 @@ method=%@, uri=%@, httpVersion=%@, headers=%@, content=%@, userInfo=%@, defaultF
if (!_headersEnd)
{
//TODO error
NSDebugMLog(@"Error");
}
else
{
NSDebugMLLog(@"requests",@"i=%d",i);
NSDebugMLLog(@"requests",@"i=%d _dataLength=%d _dataLength-i=%d",i,_dataLength,(_dataLength-i));
_data=[data_ subdataWithRange:NSMakeRange(i,_dataLength-i)];
//I'm not sure this is good but it avoid 2 bytes datas on an empty input type=file located t the end of the request)
//It may be better to deal with this few lines up, around (_headersEnd=YES;)
if ([_data length]==2)
{
const unsigned char* _bytes=(unsigned char*)[_data bytes];
if (_bytes[0]=='\r' && _bytes[1]=='\n')
_data=[NSData data];
};
};
_headers=[NSDictionary dictionaryWithDictionary:_headers];
_parsedData=[NSArray arrayWithObjects:_headers,_data,nil];
NSDebugMLLog(@"requests",@"_headers=%@",_headers);
NSDebugMLLog(@"requests",@"_data=%@",_data);
NSDebugMLLog(@"requests",@"_parsedData=%@",_parsedData);
NSDebugMLLog(@"requests",@"_data %p (length=%d)=%@",_data,[_data length],_data);
NSDebugMLLog(@"requests",@"_parsedData %p =%@",_parsedData,_parsedData);
};
LOGObjectFnStop();
return _parsedData;