workaround to make it work with low-level http-kit/request function;
style fixes;
Merge pull request #4 from tauho/master

workaround to make it work with low-level http-kit/request function;