gemaizi
572466d928
Fix body_limit middleware unit test
2022-04-05 20:34:49 +03:00
Alex Ungur
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
Emir Ribić
c8fd197fa8
Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET ( #1205 )
2018-10-14 20:46:58 +05:30
Emir Ribić
059c099762
simplify tests ( #1206 )
2018-10-14 12:48:44 +05:30
Florian Holzapfel
9aafcaf934
fix: BodyLimit middleware: limitedReader Reset does not reset read counter
2018-03-16 09:48:23 -07:00
Vishal Rana
cb9255e775
Using httptest
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-13 15:44:27 -07:00
Vishal Rana
29fd5831ff
Fixed test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-22 15:57:12 -08:00
Vishal Rana
1f1b211328
Fixed body-limit middleware test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 23:01:46 -07:00
Vishal Rana
2aec0353f5
First commit to v3, #665
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 22:56:00 -07:00
Vishal Rana
08a173b476
Enhanced body-limit middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-23 11:23:15 -07:00
Vishal Rana
368f2ab67e
Fixed fasthttp Request#SetBody
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-30 21:56:35 -07:00
Vishal Rana
0edb17e978
Added body limit middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-30 20:08:06 -07:00