Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/Handlers/SimpleRedirectHandler.cs

    r244 r325  
    1 using System;
    21using System.Net;
    32
    4 namespace AllocsFixes.NetConnections.Servers.Web.Handlers
    5 {
    6         public class SimpleRedirectHandler : PathHandler
    7         {
    8                 string target;
     3namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
     4        public class SimpleRedirectHandler : PathHandler {
     5                private readonly string target;
    96
    10                 public SimpleRedirectHandler (string target, string moduleName = null) : base(moduleName)
    11                 {
     7                public SimpleRedirectHandler (string target, string moduleName = null) : base (moduleName) {
    128                        this.target = target;
    139                }
    1410
    15                 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    16                 {
     11                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user,
     12                        int permissionLevel) {
    1713                        resp.Redirect (target);
    1814                }
    1915        }
    2016}
    21 
Note: See TracChangeset for help on using the changeset viewer.