mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
(#1554) Add support for all common compressions (write and read)
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
This commit is contained in:
@@ -24,7 +24,7 @@ func TestRequestID(t *testing.T) {
|
||||
const expectedCustomID = "my_id"
|
||||
custom := app.Party("/custom")
|
||||
{
|
||||
customGen := func(ctx context.Context) string {
|
||||
customGen := func(ctx *context.Context) string {
|
||||
return expectedCustomID
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func TestRequestID(t *testing.T) {
|
||||
const expectedErrMsg = "no id"
|
||||
customWithErr := app.Party("/custom_err")
|
||||
{
|
||||
customGen := func(ctx context.Context) string {
|
||||
customGen := func(ctx *context.Context) string {
|
||||
ctx.StopWithText(iris.StatusUnauthorized, expectedErrMsg)
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user