- Timestamp:
- Aug 6, 2022, 11:32:32 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/Handlers/RewriteHandler.cs
r382 r387 1 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;2 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;3 4 1 namespace AllocsFixes.NetConnections.Servers.Web.Handlers { 5 2 public class RewriteHandler : AbsHandler { … … 12 9 } 13 10 14 public override void HandleRequest (string _requestPath, HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _con, 15 int _permissionLevel) { 16 string newRequestPath = fixedTarget ? target : target + _requestPath.Remove (0, urlBasePath.Length); 17 parent.ApplyPathHandler (newRequestPath, _req, _resp, _con, _permissionLevel); 11 public override void HandleRequest (RequestContext _context) { 12 _context.RequestPath = fixedTarget ? target : target + _context.RequestPath.Remove (0, urlBasePath.Length); 13 parent.ApplyPathHandler (_context); 18 14 } 19 15 }
Note:
See TracChangeset
for help on using the changeset viewer.