Skip to content
Snippets Groups Projects
Commit 92aeef82 authored by Joakim Plate's avatar Joakim Plate Committed by Paulus Schoutsen
Browse files

Enable compression when sending json to client (#11165)

* Enable compression when sending json to client

Make server compress json content when transmitting to client. Json is quite verbose and compresses well.

A real world example is history_graph requested data for in my case 4 temperature sensors updating every half a second for a graph over 10 days lead to 6MB json which compressed to 200KB using deflate compression.

* Rename variable to request

* Name the variable response instead of request
parent 909a0656
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment