Changeset 311 for binary-improvements/MapRendering/Web/Web.cs
- Timestamp:
- Aug 26, 2017, 8:00:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Web.cs
r309 r311 24 24 private bool useStaticCache = false; 25 25 26 public bool isSslRedirected { 27 private set; 28 get; 26 public static bool isSslRedirected (HttpListenerRequest req) { 27 string proto = req.Headers ["X-Forwarded-Proto"]; 28 if (!string.IsNullOrEmpty (proto)) { 29 return proto.Equals ("https", StringComparison.OrdinalIgnoreCase); 30 } 31 32 return false; 29 33 } 30 34 … … 44 48 45 49 // TODO: Read from config 46 isSslRedirected = false;47 50 useStaticCache = false; 48 51
Note:
See TracChangeset
for help on using the changeset viewer.