remove needless hasOwnProperty call to allow for headers in options.headers to be set