orangain
ef82f3e034
Avoid redirect loop in HTTPSRedirect middleware ( #1058 )
...
In HTTPSRedirect and similar middlewares, determining if redirection is
needed using `c.IsTLS()` causes redirect loop when an application is running
behind a TLS termination proxy, e.g. AWS ELB.
Instead, I believe, redirection should be determined by
`c.Scheme() != "https"`. This works well even behind a TLS termination proxy.
2018-02-02 07:31:07 -08:00
..
2017-11-20 15:57:41 -08:00
2018-01-29 20:03:53 -08:00
2017-06-14 23:03:38 -07:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-12-28 11:26:50 -08:00
2017-12-28 10:41:13 -08:00
2017-12-28 11:26:50 -08:00
2017-07-14 11:55:19 -07:00
2017-08-31 10:17:27 -07:00
2017-12-28 10:41:13 -08:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-01-28 11:46:43 -08:00
2017-12-27 15:14:44 -08:00
2017-12-28 11:26:50 -08:00
2017-12-27 15:14:44 -08:00
2017-02-22 15:57:12 -08:00
2017-12-28 11:26:50 -08:00
2018-02-02 07:31:07 -08:00
2018-02-02 07:31:07 -08:00
2017-05-13 15:44:27 -07:00
2017-03-17 09:22:58 -07:00
2017-12-28 11:26:50 -08:00
2018-01-30 19:02:29 -08:00
2017-02-22 15:57:12 -08:00
2017-12-28 11:26:50 -08:00
2017-05-13 15:44:27 -07:00
2017-12-28 11:26:50 -08:00
2017-03-08 13:36:01 -08:00
2017-12-28 11:26:50 -08:00