Correctly merge default headers with request provided headers - fixes #255

Processes headers and merges default with request headers.