mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-22 15:00:45 +00:00
set status code in generateNullResponse, reformat, remove some logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26781 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bfa326239a
commit
6d18a0c808
1 changed files with 12 additions and 17 deletions
|
@ -128,40 +128,35 @@ RCS_ID("$Id$")
|
|||
{
|
||||
GSWResponse* aResponse=nil;
|
||||
|
||||
LOGObjectFnStart();
|
||||
aResponse = [GSWApp createResponseInContext:nil];
|
||||
|
||||
aResponse=[GSWApp createResponseInContext:nil];
|
||||
|
||||
GSWResponse_appendContentString(aResponse,@"<HTML><HEAD><TITLE>DirectAction Error</TITLE></HEAD><BODY><CENTER>The result of a direct action returned nothing.</CENTER></BODY></HTML>");
|
||||
|
||||
LOGObjectFnStop();
|
||||
[aResponse setStatus:500];
|
||||
GSWResponse_appendContentString(aResponse,@"<html><head><title>Error</title></head><body>Your request produced an error.</body></html>");
|
||||
|
||||
return aResponse;
|
||||
};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(GSWResponse*)generateRequestRefusalResponseForRequest:(GSWRequest*)aRequest
|
||||
{
|
||||
GSWResponse* response=nil;
|
||||
LOGObjectFnStart();
|
||||
response=[GSWResponse generateRefusingResponseInContext:nil
|
||||
forRequest:aRequest];
|
||||
LOGObjectFnStop();
|
||||
|
||||
response = [GSWResponse generateRefusingResponseInContext:nil
|
||||
forRequest:aRequest];
|
||||
return response;
|
||||
};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
-(GSWResponse*)generateErrorResponseWithException:(NSException*)exception
|
||||
inContext:(GSWContext*)aContext
|
||||
{
|
||||
GSWResponse* response=nil;
|
||||
LOGObjectFnStart();
|
||||
|
||||
if (_displayExceptionPages)
|
||||
response=[GSWApp handleException:exception
|
||||
inContext:aContext];
|
||||
LOGObjectFnStop();
|
||||
response = [GSWApp handleException:exception
|
||||
inContext:aContext];
|
||||
return response;
|
||||
};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
//NDFN: return additional path elements
|
||||
|
|
Loading…
Reference in a new issue