File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed 
server/src/test/java/org/elasticsearch Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1642,20 +1642,17 @@ public void testHttpHeaders() throws IOException {
16421642
16431643    public  void  testNoExceptionTypeHeaderOn4xx () throws  IOException  {
16441644        var  e  = new  Exception4xx ("some exception" );
1645-         assertThat (e .getHeaderKeys (), not (hasItem (ElasticsearchException .EXCEPTION_TYPE_HEADER )));
1645+         assertThat (e .getHttpHeaderKeys (), not (hasItem (ElasticsearchException .EXCEPTION_TYPE_HEADER )));
16461646
16471647        XContentBuilder  builder  = XContentFactory .jsonBuilder ();
16481648        builder .startObject ();
16491649        e .toXContent (builder , ToXContent .EMPTY_PARAMS );
16501650        builder .endObject ();
16511651        String  expected  = """ 
1652-                         { 
1653-                           "type": "exception4xx", 
1654-             ======= 
1655-                           "type": "exception", 
1656-             >>>>>>> main 
1657-                           "reason": "some exception" 
1658-                         }""" ;
1652+             { 
1653+               "type": "exception4xx", 
1654+               "reason": "some exception" 
1655+             }""" ;
16591656        assertEquals (XContentHelper .stripWhitespace (expected ), Strings .toString (builder ));
16601657    }
16611658}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments