mcavage/node-restify — pull request #207 by potrebic (2012-09-04 18:46:36+00:00)
Title: Fix & unit tests for GH-203

[This is my fist github pull request, excuse me if I'm doing something incorrectly :) ]

The fix for GH-203 was to special case and not call JSON.parse() on line 53 of json_client.js. RegEx was used to identify this case.

Wrote 2 unit tests to verify. The unit tests were trickier than the code as default restify behavior was quoting the string: res.send(" ");

Ran all the other unit tests and they worked. (ones that I could - on Windows its my understand the dtrace package doesn't exist)

Thank you!