Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Middlewares seems to influence other http applications. #1860

@dylandoamaral

Description

@dylandoamaral

Describe the bug
I don't know if it is a bug or a feature but middlewares seems to influence other http applications.

It is an issue in my case since I have a fallback function to send a custom 404 mesage.

To Reproduce
If we take the following code:


val app1 = ???
val app2 = ???
val app3 = ???

val app = app1 ++ app2 @@ bearerAuth(token => true) ++ app3

The app3 will also have the bearer middleware but not the app1.

Expected behaviour
app3 doesn't need token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions