File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Elastic.Transport/Products/Elasticsearch
tests/Elastic.Transport.IntegrationTests/Http Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public ElasticsearchProductRegistration(Type markerType) : this()
5050 _metaHeaderProvider = new DefaultMetaHeaderProvider ( clientVersionInfo , identifier ) ;
5151
5252 // Only set this if we have a version.
53- // If we don't have a version we won't apply the vendor-based REST API compatibility Accept header.
53+ // If we don't have a version, we won't apply the vendor-based REST API compatibility Accept header.
5454 if ( clientVersionInfo . Major > 0 )
5555 _clientMajorVersion = clientVersionInfo . Major ;
5656
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ public async Task AddsExpectedVendorInformationForRestApiCompaitbility()
2525 responseMessage . RequestMessage . Content . Headers . ContentType . MediaType . Should ( ) . Be ( "application/vnd.elasticsearch+json" ) ;
2626 var parameter = responseMessage . RequestMessage . Content . Headers . ContentType . Parameters . Single ( ) ;
2727 parameter . Name . Should ( ) . Be ( "compatible-with" ) ;
28- parameter . Value . Should ( ) . Be ( "8 " ) ;
28+ parameter . Value . Should ( ) . Be ( "9 " ) ;
2929
3030 var acceptValues = responseMessage . RequestMessage . Headers . GetValues ( "Accept" ) ;
31- acceptValues . Single ( ) . Replace ( " " , "" ) . Should ( ) . Be ( "application/vnd.elasticsearch+json;compatible-with=8 " ) ;
31+ acceptValues . Single ( ) . Replace ( " " , "" ) . Should ( ) . Be ( "application/vnd.elasticsearch+json;compatible-with=9 " ) ;
3232
3333 var contentTypeValues = responseMessage . RequestMessage . Content . Headers . GetValues ( "Content-Type" ) ;
34- contentTypeValues . Single ( ) . Replace ( " " , "" ) . Should ( ) . Be ( "application/vnd.elasticsearch+json;compatible-with=8 " ) ;
34+ contentTypeValues . Single ( ) . Replace ( " " , "" ) . Should ( ) . Be ( "application/vnd.elasticsearch+json;compatible-with=9 " ) ;
3535 } ) ;
3636
3737 var nodePool = new SingleNodePool ( Server . Uri ) ;
You can’t perform that action at this time.
0 commit comments