iloire / watchmen

A simple node.js service monitor
MIT License
941 stars 199 forks source link

Make headers customizable #13

Closed gaearon closed 10 years ago

gaearon commented 10 years ago

Hi,

I saw there is a headers variable which is defined and initialized with Content-Type and Content-Length, but is unused. I presume this was a mistake, so I fixed it.

I also needed to add a custom header, so I added an ability to specify headers in service configuration alongside the url and method.