From 6fbaa1a5f06561cba172f7ae53fb8de1cbac8540 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 30 Apr 2009 22:06:19 +0000 Subject: [PATCH] activate the config options, need to that if you're going to use a cache server that's not == localhost:11211 git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1700 9efc2488-bf62-4759-914b-345cdb29e865 --- src/gateway/osrf_http_translator.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gateway/osrf_http_translator.c b/src/gateway/osrf_http_translator.c index 2b1d7bf..d794d08 100644 --- a/src/gateway/osrf_http_translator.c +++ b/src/gateway/osrf_http_translator.c @@ -32,6 +32,7 @@ #define OSRF_HTTP_HEADER_SERVICE "X-OpenSRF-service" #define OSRF_HTTP_HEADER_MULTIPART "X-OpenSRF-multipart" + char* configFile = DEFAULT_TRANSLATOR_CONFIG_FILE; char* configCtx = DEFAULT_TRANSLATOR_CONFIG_CTX; char* cacheServers = DEFAULT_TRANSLATOR_CACHE_SERVERS; @@ -84,8 +85,8 @@ static const char* osrfHttpTranslatorGetCacheServer(cmd_parms *parms, void *conf return NULL; } -/** set up the configuratoin handlers */ -static const command_rec osrf_json_gateway_cmds[] = { +/** set up the configuration handlers */ +static const command_rec osrfHttpTranslatorCmds[] = { AP_INIT_TAKE1( OSRF_TRANSLATOR_CONFIG_FILE, osrfHttpTranslatorGetConfigFile, NULL, RSRC_CONF, "osrf translator config file"), AP_INIT_TAKE1( OSRF_TRANSLATOR_CONFIG_CTX, osrfHttpTranslatorGetConfigFileCtx, @@ -515,7 +516,7 @@ module AP_MODULE_DECLARE_DATA osrf_http_translator_module = { NULL, NULL, NULL, - NULL, + osrfHttpTranslatorCmds, registerHooks, }; -- 2.43.2