Adapt the code to the new version of cohttp

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #8 from jeromemaloberti/cohttp_git

Adapt the code to the new version of cohttp