Skip to content

Commit fea60fa

Browse files
committed
Rename to Config.AddParamsToQueryString to AddRedirectParamsToQueryString
1 parent 7833cd8 commit fea60fa

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/ServiceStack/HostConfig.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static HostConfig NewInstance()
106106
Return204NoContentForEmptyResponse = true,
107107
AllowPartialResponses = true,
108108
AllowAclUrlReservation = true,
109-
AddParamsToQueryString = false,
109+
AddRedirectParamsToQueryString = false,
110110
RedirectToDefaultDocuments = false,
111111
StripApplicationVirtualPath = false,
112112
ScanSkipPaths = new List<string> {
@@ -183,7 +183,7 @@ public HostConfig()
183183
this.IgnoreWarningsOnPropertyNames = instance.IgnoreWarningsOnPropertyNames;
184184
this.FallbackRestPath = instance.FallbackRestPath;
185185
this.AllowAclUrlReservation = instance.AllowAclUrlReservation;
186-
this.AddParamsToQueryString = instance.AddParamsToQueryString;
186+
this.AddRedirectParamsToQueryString = instance.AddRedirectParamsToQueryString;
187187
this.RedirectToDefaultDocuments = instance.RedirectToDefaultDocuments;
188188
this.StripApplicationVirtualPath = instance.StripApplicationVirtualPath;
189189
this.ScanSkipPaths = instance.ScanSkipPaths;
@@ -258,7 +258,7 @@ public RequestAttributes MetadataVisibility
258258
public bool AllowPartialResponses { get; set; }
259259
public bool AllowNonHttpOnlyCookies { get; set; }
260260
public bool AllowAclUrlReservation { get; set; }
261-
public bool AddParamsToQueryString { get; set; }
261+
public bool AddRedirectParamsToQueryString { get; set; }
262262
public bool RedirectToDefaultDocuments { get; set; }
263263
public bool StripApplicationVirtualPath { get; set; }
264264

src/ServiceStack/HttpResponseExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static string AddParam(this string url, string key, object val)
247247

248248
public static string AddParam(this string url, string key, string val)
249249
{
250-
var addToQueryString = HostContext.Config.AddParamsToQueryString;
250+
var addToQueryString = HostContext.Config.AddRedirectParamsToQueryString;
251251
return addToQueryString
252252
? url.AddQueryParam(key, val)
253253
: url.AddHashParam(key, val);

tests/ServiceStack.AuthWeb.Tests/AppHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public override void Configure(Container container)
7979

8080
SetConfig(new HostConfig {
8181
DebugMode = true,
82-
AddParamsToQueryString = true,
82+
AddRedirectParamsToQueryString = true,
8383
});
8484
}
8585

0 commit comments

Comments
 (0)