Skip to content

Commit

Permalink
Remove extra changes in spacing and indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo committed Jun 20, 2023
1 parent dc171a5 commit 211451d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
13 changes: 7 additions & 6 deletions dotnet/src/dotnetframework/GxClasses/Core/Web/GxHttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class GxHttpResponse
{
HttpResponse _httpRes;
IGxContext _context;

public GxHttpResponse(IGxContext context)
{
_context = context;
Expand Down Expand Up @@ -131,7 +132,7 @@ public void AddString( string s)
if (Response != null)
{
Response.Write(s);
}
}
}

public void AddFile( string fileName)
Expand All @@ -141,16 +142,16 @@ public void AddFile( string fileName)
Response.WriteFile(fileName.Trim());
}
}
public void AppendHeader(string name, string value)
public void AppendHeader( string name, string value)
{
if (string.Compare(name, "Content-Disposition", true) == 0)
if(string.Compare(name, "Content-Disposition", true) == 0)
{
value = GXUtil.EncodeContentDispositionHeader(value, _context.GetBrowserType());
}
if (_context != null)
_context.SetHeader(name, value);
if (_context!=null)
_context.SetHeader(name, value);
}

}

public class GxSoapRequest : GxHttpRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ HttpResponseMessage ExecuteRequest(string method, string requestUrl, CookieConta
handler.ReceiveDataTimeout = milliseconds;
handler.ReceiveHeadersTimeout = milliseconds;
#endif

using (client = new HttpClient(handler))
{
client.Timeout = milliseconds;
Expand Down
7 changes: 5 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace GeneXus.Http
using Web.Security;
using System.Web.SessionState;
#endif



#if NETCORE
public abstract class GXHttpHandler : GXBaseObject, IHttpHandler
#else
Expand Down Expand Up @@ -1545,8 +1548,6 @@ protected void SendResponseStatus(HttpStatusCode statusCode)
{
SendResponseStatus((int)statusCode, string.Empty);
}


#if !NETCORE
protected void SendResponseStatus(int statusCode, string statusDescription)
{
Expand Down Expand Up @@ -1851,6 +1852,8 @@ public bool IsMain
get { return _isMain; }
}
#endif


public void ProcessRequest(HttpContext httpContext)
{
localHttpContext = httpContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ private void setOuputFileName()
{
fileType = outputType.ToLower();
}

context.HttpContext.Response.AddHeader(HttpHeader.CONTENT_DISPOSITION, $"inline; filename={fileName}.{fileType}");
}

Expand Down

0 comments on commit 211451d

Please sign in to comment.