Skip to content

Commit ab27657

Browse files
committed
Enable native IIS server variables by default
1 parent 8ed9634 commit ab27657

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public static class IISUrlRewriteOptionsExtensions
1919
/// <param name="options">The <see cref="RewriteOptions"/></param>
2020
/// <param name="fileProvider">The <see cref="IFileProvider"/> </param>
2121
/// <param name="filePath">The path to the file containing UrlRewrite rules.</param>
22-
/// <param name="useNativeIISServerVariables">If the application uses the in-process hosting model, server variables can be sourced natively from IIS. It is disabled by default.</param>
23-
public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, IFileProvider fileProvider, string filePath, bool useNativeIISServerVariables = false)
22+
/// <param name="useNativeIISServerVariables">Server variables are sourced natively from IIS if the application uses the in-process hosting model; use <c>false</c> to disable that behavior</param>
23+
public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, IFileProvider fileProvider, string filePath, bool useNativeIISServerVariables = true)
2424
{
2525
if (options == null)
2626
{
@@ -45,8 +45,8 @@ public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, IFile
4545
/// </summary>
4646
/// <param name="options">The <see cref="RewriteOptions"/></param>
4747
/// <param name="reader">The text reader stream.</param>
48-
/// <param name="useNativeIISServerVariables">If the application uses the in-process hosting model, server variables can be sourced natively from IIS. It is disabled by default.</param>
49-
public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, TextReader reader, bool useNativeIISServerVariables = false)
48+
/// <param name="useNativeIISServerVariables">Server variables are sourced natively from IIS if the application uses the in-process hosting model; use <c>false</c> to disable that behavior</param>
49+
public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, TextReader reader, bool useNativeIISServerVariables = true)
5050
{
5151
if (options == null)
5252
{

0 commit comments

Comments
 (0)