shimaore/esl — pull request #18 by james-onsip (2014-11-28 21:03:30+00:00)
Title: Update bg_api to deal with separate Job-UUID header

I forgot I was carrying this around until I updated to 2.3.0, but figured it would be useful!

When I make a call to bgapi, the resulting object (res) looks like:

{ headers:
{ 'Content-Type': 'command/reply',
'Reply-Text': '+OK Job-UUID',
'Job-UUID': '96f09cda-773f-11e4-b046-314aef1416bd' },
body: undefined }

When this call is made in fs_cli, it looks like:

+OK Job-UUID: 53abcbc8-7741-11e4-b049-314aef1416bd

The code without my patch seems to just check for the fs_cli version. I'm not sure if there is a way to make the result object look like fs_cli output, so I left in the old way as well.