Commit Graph

5 Commits (4b0aea1dca6e685395ed087587570447e368cd4f)

Author SHA1 Message Date
Kirill Motkov 0401a91ef4 Some code improvements
* Rewrite empty string checks more idiomatically.
* Change strings.ToLower comparisons to strings.EqualFold.
* Rewrite switch statement with only one case as if.
2019-06-28 17:53:44 +03:00
Darien Raymond 4d23411d80
comments 2019-02-23 00:29:09 +01:00
Darien Raymond 7e37d141e2
move parseHost to http protocol 2018-12-10 23:08:16 +01:00
Darien Raymond 1f226797bc
remove header operation to http protocol package 2017-12-18 20:59:43 +01:00
Darien Raymond 91ca88bcff
read original addr from x-forwarded-for header if present 2017-12-18 20:34:00 +01:00