Fix for http protocol