Commit Graph

69 Commits

Author SHA1 Message Date
Matt Williams
e8fc0c74b4 gin/context.go: Minor change in Abort comment 2015-03-17 18:51:03 +00:00
Javier Provecho Fernandez
cf8150ed2b Add HTML no template string output support #197 2015-03-08 17:50:58 +01:00
Aleksandr Didenko
0fb7bed1c0 Added support multipart/form-data #109 2015-03-08 15:43:37 +01:00
techjanitor
a900e7888c Update context.go
Add localhost to proxies
2015-02-07 22:44:53 -06:00
Remco
e4f6e053d0 Fixed issue allowing to spoof ClientIP()
The X-Forwared-For can be used to spoof the real client ip. The middleware
introduced in this patch (which should only be used when having servers
in front of this servers) will filter all defined proxies (or local ip
addresses by default) and replace the RemoteAddr with the real client
ip.
2014-12-21 13:42:48 +01:00
Manu Mtz-Almeida
aa7b00a083 General refactoring. Part 2. 2014-10-09 01:40:42 +02:00
Manu Mtz-Almeida
07a3961941 General refactoring 2014-10-08 21:37:26 +02:00
Manu Mtz-Almeida
012c935a46 Better errors in Context.Negotiation 2014-08-31 18:41:11 +02:00
Manu Mtz-Almeida
275bdc194e Fixes Content.Negotiate API 2014-08-31 18:28:18 +02:00
Manu Mtz-Almeida
ffea7e88a2 Working on content type negotiation API 2014-08-30 22:22:57 +02:00
Manu Mtz-Almeida
8e5397bfa0 Adds in-code license 2014-08-29 19:49:50 +02:00
Alexander Nyquist
64fb835e6f Only accepting 3xx status codes when redirecting. Swapped location and code arguments for Redirect signature 2014-08-02 17:06:09 +02:00
Alexander Nyquist
e350ae7c7e Removed redundancy when redirecting 2014-07-29 00:53:56 +02:00
Alexander Nyquist
2c4460d7cc Fixed status code when redirecting 2014-07-29 00:51:34 +02:00
Alexander Nyquist
593de4e913 Added support for redirects 2014-07-29 00:48:02 +02:00
Manu Mtz-Almeida
c7fdc2e03a Errors in context are removed 2014-07-18 00:29:20 +02:00
Manu Mtz-Almeida
48f4914165 Performance improvement
- Reduces number of allocations per context
- Improves CPU cache usage
2014-07-18 00:10:28 +02:00
Manu Mtz-Almeida
8ed55606c3 Adds context.File(path) 2014-07-17 02:01:42 +02:00
Manu Mtz-Almeida
dc43372610 Splitting source code in different files 2014-07-16 20:14:03 +02:00