X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Flib.rs;h=cc77ca48f4ae395357639603f19b1a97dce5eeb1;hb=b2a9d4a335185b25779740a936a9ba8b20e07986;hp=a704262e87ccaa2b7e446817eebbd7e1bc86e4a4;hpb=73d2faa9f5773953eeda9402fc3934e0fdfa239c;p=lemmy.git diff --git a/src/lib.rs b/src/lib.rs index a704262e..cc77ca48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -150,6 +150,7 @@ pub async fn start_lemmy_server() -> Result<(), LemmyError> { // This is the default log format save for the usage of %{r}a over %a to guarantee to record the client's (forwarded) IP and not the last peer address, since the latter is frequently just a reverse proxy "%{r}a '%r' %s %b '%{Referer}i' '%{User-Agent}i' %T", )) + .wrap(middleware::Compress::default()) .wrap(cors_config) .wrap(TracingLogger::::new()) .app_data(Data::new(context.clone()))