improve example snippet for adding headers

The example for adding headers to all requests did not set the newly created 'headers' object on the env.options object if there were no headers previously specified.
Merge pull request #934 from ReneB/fix_docs_for_adding_headers

Improve example snippet for adding headers