Adding back in some code that was removed

Without setting _request, then in Chrome one will get this error:

    Uncaught TypeError: Cannot read property 'headers' of undefined
Merge pull request #4 from fidian/undefined-headers

Adding back in some code that was removed