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=e0d4a6474038d3d922b4f4e990f6381b4d06a30e;p=Evergreen.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/ILS/trunk@7331 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/src/libstack/osrf_app_session.c b/OpenSRF/src/libstack/osrf_app_session.c index 770446fc9f..054ea3067a 100644 --- a/OpenSRF/src/libstack/osrf_app_session.c +++ b/OpenSRF/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 );