Skip to content

Commit

Permalink
Don't use bfetch route version number
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Nov 5, 2024
1 parent ad310bb commit 364088a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/test/common/services/search_secure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import expect from '@kbn/expect';
import request from 'superagent';
import type { IEsSearchResponse } from '@kbn/search-types';
import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common';
import { BFETCH_ROUTE_VERSION_LATEST } from '@kbn/bfetch-plugin/common';
import { SupertestWithoutAuthProviderType } from '@kbn/ftr-common-functional-services';
import { FtrService } from '../ftr_provider_context';

Expand Down Expand Up @@ -113,7 +112,7 @@ export class SearchSecureService extends FtrService {
.auth(auth.username, auth.password)
.set('kbn-xsrf', 'true')
.set('x-elastic-internal-origin', 'Kibana')
.set(ELASTIC_HTTP_VERSION_HEADER, BFETCH_ROUTE_VERSION_LATEST)
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
.send()
.expect(200);
const [parsedResponse] = parseBfetchResponse(resp);
Expand Down

0 comments on commit 364088a

Please sign in to comment.