fix for newer cowboy version, when used together with mochiweb_request.