* write x-webobjects-adaptor-version to the app

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25663 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2007-12-02 22:31:26 +00:00
parent 93ef88350c
commit 01e2e20125

View file

@ -95,6 +95,8 @@ typedef struct gsw_app_conf {
} gsw_app_conf;
#define GSW_INST_CACHE "gsw_inst_cache"
#define X_WO_VERSION_HEADER "x-webobjects-adaptor-version: 20071201\r\n"
//#define CRLF "\r\n"
/*
@ -747,6 +749,8 @@ static int handle_request(request_rec *r, gsw_app_conf * app)
snprintf(tmpStr, sizeof(tmpStr), "%s: %s\r\n", hdrs[i].key, hdrs[i].val);
write_sock(soc, tmpStr, strlen(tmpStr), r);
}
// write x-webobjects-adaptor-version to the app
write_sock(soc, X_WO_VERSION_HEADER, strlen(X_WO_VERSION_HEADER), r);
if (ap_setup_client_block(r, REQUEST_CHUNKED_ERROR) != OK) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "handle_request: DECLINED");