File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,7 @@ pub use self::{
5656    resolver:: { DEFAULT_CERT_RELOAD_INTERVAL ,  ReloadingResolver } , 
5757} ; 
5858
59- // TODO: remove before 1.0 
60- const  NO_CONTENT_CHALLENGE_HEADER_LEGACY :  & str  = "X-Tailscale-Challenge" ; 
6159const  NO_CONTENT_CHALLENGE_HEADER :  & str  = "X-Iroh-Challenge" ; 
62- const  NO_CONTENT_RESPONSE_HEADER_LEGACY :  & str  = "X-Tailscale-Response" ; 
6360const  NO_CONTENT_RESPONSE_HEADER :  & str  = "X-Iroh-Response" ; 
6461const  NOTFOUND :  & [ u8 ]  = b"Not Found" ; 
6562const  ROBOTS_TXT :  & [ u8 ]  = b"User-agent: *\n Disallow: /\n " ; 
@@ -656,15 +653,6 @@ fn serve_no_content_handler<B: hyper::body::Body>(
656653        } 
657654    } 
658655
659-     if  let  Some ( challenge)  = r. headers ( ) . get ( NO_CONTENT_CHALLENGE_HEADER_LEGACY )  { 
660-         if  check ( challenge)  { 
661-             response = response. header ( 
662-                 NO_CONTENT_RESPONSE_HEADER_LEGACY , 
663-                 format ! ( "response {}" ,  challenge. to_str( ) ?) , 
664-             ) ; 
665-         } 
666-     } 
667- 
668656    response
669657        . status ( StatusCode :: NO_CONTENT ) 
670658        . body ( body_empty ( ) ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments