Provide a thread if the translator wasn't passed one in the request headers
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 28 Jan 2010 03:14:32 +0000 (03:14 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 28 Jan 2010 03:14:32 +0000 (03:14 +0000)
commit542fd81999909615f2e21668a378a7b4dd4d1f18
treec9b9001bbaa3561d70c9f4c9f07b391f64772e07
parentdc662cee02711d1e980fca2c56dfe1d34f7996a2
Provide a thread if the translator wasn't passed one in the request headers

The OpenSRF-over-HTTP spec says that the translator will generate a thread
in the response if one wasn't passed in the request; however, we were trying
to pass a null pointer back and that doesn't work so well.

As we're already generating a reasonably unique string for the purposes
of delim in the multipart data response, let's also use that for the
response thread when necessary.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1906 9efc2488-bf62-4759-914b-345cdb29e865
src/gateway/osrf_http_translator.c