fix get req and res protocol