From f3a07c3790e7da70e1244813fb591e8f370d7bb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Sun, 3 Jan 2021 14:09:16 +0100
Subject: [PATCH] Copypaste bugfix

---
 .gitlab-ci.yml                  | 2 +-
 lib/CF/Controller/Websockets.pm | 2 +-
 openapi.yaml                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b1113b..bcfb00e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: docker:19.03.1
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
   IMAGE_TAG: $CI_REGISTRY_IMAGE
-  IMAGE_VER: 1.5.0
+  IMAGE_VER: 1.5.1
 
 services:
   - docker:19.03.1-dind
diff --git a/lib/CF/Controller/Websockets.pm b/lib/CF/Controller/Websockets.pm
index 8e6a371..e40237b 100644
--- a/lib/CF/Controller/Websockets.pm
+++ b/lib/CF/Controller/Websockets.pm
@@ -17,7 +17,7 @@ sub main {
 
     $c->inactivity_timeout(SOCKET_INACTIVITY_TIMEOUT);
 
-    if ($c->req->headers->header('Sec-WebSocket-Key') =~ /deflate/) {
+    if ($c->req->headers->header('Sec-WebSocket-Extensions') =~ /permessage-deflate/) {
         $c->tx->compressed(1);
     }
 
diff --git a/openapi.yaml b/openapi.yaml
index 1f3a9ea..216ca04 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1,7 +1,7 @@
 openapi: 3.0.3
 
 info:
-  version: 1.4.0
+  version: 1.5.1
   title: CF Online
   description: CF Online
   license:
-- 
GitLab