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

Resolving a bug that can allow the headers to be sent more than once.