Fix for bug #6 - Headers sending more than once.

Resolving a bug that can allow the headers to be sent more than once.
Merge pull request #7 from codephobia/master

Fix for bug #6 - Headers sending more than once.