httputil: fix debughandle