mcavage/node-restify — pull request #137 by hmarr (2012-05-05 19:59:19+00:00)
Title: Fix defaultResponseHeaders setter

`defaultResponseHeaders` wasn't being overwritten, as the new function was being assigned to `defaultHeaders` by the setter. The following example demonstrates the behaviour:

```javascript

var restify = require('./lib/index');

server = restify.createServer();

var message = "Error! defaultResponseHeaders was not overridden.";
restify.defaultResponseHeaders = function() {
message = "Success! defaultResponseHeaders was overridden.";
}

server.listen(9912);

client = restify.createClient({url: 'http://127.0.0.1:9912', type: 'json'});
client.get('/', function (err, req, res, obj) {
server.close();
console.log(message);
});
```