Skip to content
Discussion options

You must be logged in to vote

You are right. Currently the gzip compression middleware is non-optional because it's simply added when importing NiceGUI:

app.add_middleware(GZipMiddleware)

We should move it to the ui_run.py initialization and introduce a configuration parameter. Would you like to create a pull request? Until it is merged you may be able to access app.user_middleware and remove the middleware in your application code...

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ed2050
Comment options

@me21
Comment options

@ed2050
Comment options

Answer selected by ed2050
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants