http-kit/http-kit — pull request #51 by jeffcharles (2013-05-15 01:35:43+00:00)
Title: Do not add Accept header if one is already defined for the request

Sometimes when I'm making an HTTP request, I like to specify which content-types I support in the Accept header so a web service doesn't return a type I don't support.

Right now, http-kit just adds an `Accept: */*` header despite me setting it to a different value when creating the request. This pull request checks to see if the accept header is already defined for the request and if it is, not to add an additional one that accepts everything. If an accept header is not specified, then an accept everything header is added.