Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 3 repositories · View In Graph Contained in tip and canonical

Changed AllowsSearchEngineIndexing to be non-nullable.

Changeset 1b730dac7e83

Parent 7d78e89c2a14

by Profile picture of William GrossWilliam Gross

Changes to 3 files · Browse files at 1b730dac7e83 Showing diff from parent 7d78e89c2a14 Diff from another changeset...

 
98
99
100
101
 
102
103
 
 
98
99
100
 
101
102
103
 
@@ -98,6 +98,6 @@
  /// </summary>   protected internal virtual ConnectionSecurity ConnectionSecurity => ParentResource?.ConnectionSecurity ?? ConnectionSecurity.SecureIfPossible;   - protected internal virtual bool? AllowsSearchEngineIndexing => ParentResource?.AllowsSearchEngineIndexing; + protected internal virtual bool AllowsSearchEngineIndexing => ParentResource?.AllowsSearchEngineIndexing ?? true;   }  } \ No newline at end of file
 
254
255
256
257
 
258
259
260
261
262
263
 
264
265
266
 
254
255
256
 
257
258
259
260
261
262
 
263
264
265
266
@@ -254,13 +254,13 @@
  }   }   - protected internal virtual bool? AllowsSearchEngineIndexing { + protected internal virtual bool AllowsSearchEngineIndexing {   get {   if( ParentResource != null )   return ParentResource.AllowsSearchEngineIndexing;   if( EsInfoAsBaseType != null )   return EsInfoAsBaseType.AllowsSearchEngineIndexing; - return null; + return true;   }   }  
 
1033
1034
1035
1036
 
1037
1038
1039
 
1033
1034
1035
 
1036
1037
1038
1039
@@ -1033,7 +1033,7 @@
    if( !ConfigurationStatics.IsLiveInstallation )   Response.AppendHeader( "X-Robots-Tag", "noindex, nofollow" ); - else if( InfoAsBaseType.AllowsSearchEngineIndexing == false ) + else if( !InfoAsBaseType.AllowsSearchEngineIndexing )   Response.AppendHeader( "X-Robots-Tag", "noindex" );     // Without this header, certain sites could be forced into compatibility mode due to the Compatibility View Blacklist maintained by Microsoft.