From: erickson Date: Fri, 18 May 2007 16:57:56 +0000 (+0000) Subject: returning OK status in respond method, instead of no status at all. most code uses... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95beed5bae639db8b35b4e5e771b94e57b2cb0cf;p=opensrf%2Fbjwebb.git returning OK status in respond method, instead of no status at all. most code uses respond_complete, which is why this has not been an issue in the past. writing new client libs exposed it, though git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@900 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_app_session.c b/src/libstack/osrf_app_session.c index 770446f..054ea30 100644 --- a/src/libstack/osrf_app_session.c +++ b/src/libstack/osrf_app_session.c @@ -598,6 +598,7 @@ int osrfAppRequestRespond( osrfAppSession* ses, int requestId, jsonObject* data if(!ses || ! data ) return -1; osrf_message* msg = osrf_message_init( RESULT, requestId, 1 ); + osrf_message_set_status_info( msg, NULL, "OK", OSRF_STATUS_OK ); char* json = jsonObjectToJSON( data ); osrf_message_set_result_content( msg, json );