Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 222967 Details for
Bug 308811
WebObjects server adaptor - Apache 2.2 module (mod_WebObjects)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/mod_WebObjects-5.4.3-return_404_2.patch
mod_WebObjects-5.4.3-return_404_2.patch (text/plain), 1.41 KB, created by
Krzysztof Tomczyk
on 2010-03-10 11:32:44 UTC
(
hide
)
Description:
files/mod_WebObjects-5.4.3-return_404_2.patch
Filename:
MIME Type:
Creator:
Krzysztof Tomczyk
Created:
2010-03-10 11:32:44 UTC
Size:
1.41 KB
patch
obsolete
>--- mod_WebObjects.c.orig 2010-02-23 14:04:45.637576597 +0100 >+++ mod_WebObjects.c 2010-02-23 14:14:35.226553841 +0100 >@@ -458,9 +458,9 @@ > > > static int die_resp(request_rec *r, HTTPResponse *resp) { >- sendResponse(r, resp); >+ int returnCode = resp->status; > resp_free(resp); >- return OK; >+ return returnCode; > } > > static int die(request_rec *r, const char *msg, int status) { >@@ -727,9 +727,9 @@ > if (ac_authorizeAppListing(&wc)) { > resp = WOAdaptorInfo(NULL, &wc); > if (resp) { >- sendResponse(r, resp); >+ int returnCode = resp->status; > resp_free(resp); >- return OK; >+ return returnCode; > } > return die(r, _urlerr, HTTP_SERVER_ERROR); > } >@@ -804,11 +804,20 @@ > > /* send the response if we have one */ > if (resp != NULL) { >- sendResponse(r, resp); >+ switch(resp->status) { >+ case HTTP_NOT_FOUND: >+ case HTTP_BAD_REQUEST: >+ case HTTP_SERVER_ERROR: >+ retval = resp->status; >+ break; >+ default: >+ sendResponse(r, resp); >+ retval = OK; >+ break; >+ } > resp_free(resp); >- retval = OK; > } else { >- retval = DECLINED; >+ retval = DECLINED; > } > > req_free(req); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 308811
:
222963
|
222965
| 222967 |
222969