source: binary-improvements/MapRendering/Web/Handlers/SimpleRedirectHandler.cs@ 364

Last change on this file since 364 was 351, checked in by alloc, 6 years ago

Fixed game version compatibility of GamePrefs
Code style cleanup (mostly argument names)

File size: 466 bytes
Line 
1using System.Net;
2
3namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
4 public class SimpleRedirectHandler : PathHandler {
5 private readonly string target;
6
7 public SimpleRedirectHandler (string _target, string _moduleName = null) : base (_moduleName) {
8 target = _target;
9 }
10
11 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
12 int _permissionLevel) {
13 _resp.Redirect (target);
14 }
15 }
16}
Note: See TracBrowser for help on using the repository browser.