FIX: should set headers for current request

Sometimes an error occurs about the headers global not existing,
I believe that the headers dict in question belongs to the request
object
Merge pull request #9 from alanxz/headers_global_error

FIX: should set headers for current request