Skip to content

Commit d730d61

Browse files
Temporary revert. It breaks Location headers with absolute URLS.
1 parent 173dd32 commit d730d61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ public short SetCookie(string name, string cookieValue, string path, DateTime ex
23362336
if (!expires.Equals(DateTimeUtil.NullDate()))
23372337
cookieOptions.Expires = DateTime.SpecifyKind(cookie.Expires, DateTimeKind.Utc);
23382338

2339-
_HttpContext.Response.Cookies.Append(GXUtil.UrlEncode(cookie.Name), GXUtil.UrlEncode(cookie.Value), cookieOptions);
2339+
_HttpContext.Response.Cookies.Append(cookie.Name, cookie.Value, cookieOptions);
23402340
localCookies[name] = cookie;
23412341
#else
23422342
if (_HttpContext.Response.Cookies.Get(name) != null)

dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,12 @@ public static class HttpResponseExtensions
467467
{
468468
public static void AppendHeader(this HttpResponse response, string name, string value) {
469469
if (!response.HasStarted)
470-
response.Headers[name] = GXUtil.UrlEncode(value);
470+
response.Headers[name] = value;
471471
}
472472
public static void AddHeader(this HttpResponse response, string name, string value)
473473
{
474474
if (!response.HasStarted)
475-
response.Headers[name] = GXUtil.UrlEncode(value);
475+
response.Headers[name] = value;
476476
}
477477

478478
public static void Write(this HttpResponse response, string value)

0 commit comments

Comments
 (0)