Adapt the code to the new version of cohttp

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>