Fix for #14. Empty request headers causing connection to fail

Fixed by detecting NULL headers and setting their values to an empty string, rather than NULL
Merge pull request #15 from DominicWatson/bugfix-14

Fix for #14. Empty request headers causing connection to fail