fix HTTPS long header bug