code: private function removeXsendfileHeaders(array $headers)
      {
          $filter = ['x-sendfile', 'content-disposition'];
          return array_filter($headers, function ($key) use ($filter) {
              return !in_array($key, $filter);
          }, ARRAY_FILTER_USE_KEY);
      }
docs: removeXsendfileHeaders
  
  @param array $headers
  
  @return array