3
0
mirror of https://github.com/gin-gonic/gin.git synced 2025-04-06 03:57:46 +08:00

6 Commits

Author SHA1 Message Date
Dmitry Kutakov
b52a1a1588 allow empty headers on DataFromReader () 2019-11-25 10:45:53 +08:00
Segev Finer
20440b96b9 Support negative Content-Length in DataFromReader ()
You can get an http.Response with ContentLength set to -1 (Chunked encoding), so
for DataFromReader to be useful for those we need to support that.
2019-08-05 09:42:59 +08:00
songjiayang
7b1081a73f issue_1721: fix render writeHeaders to make it the same as http.Header.Set () 2019-02-22 14:20:24 +08:00
田欧
d510595aa5 chore: add some annotations ()
ref:  
because I am not a native English, maybe have a bit problem.
2018-09-15 10:23:32 +08:00
田欧
b7bb9baa64
chore: add missing copyright and update if/else () 2018-08-19 22:52:43 +08:00
Jean-Christophe Lebreton
bf7803815b Serve easily dynamic files with DataFromReader context method ()
* Add DataFromReader context method

* Replace fmt by strconv.FormatInt

* Add pull request link to README
2018-05-12 11:00:42 +08:00