From e8629c323dc1fa377574b3bcaecb351d1d3116e9 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Sun, 1 Nov 2015 20:34:24 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- vphttp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vphttp.py b/vphttp.py index 155db57..0c09c52 100644 --- a/vphttp.py +++ b/vphttp.py @@ -236,7 +236,8 @@ class HTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): logger.debug( "Sending fake headers for " + useragent) self.send_response(200) - self.send_header('Cache-Control','no-cache'); + self.send_header('Cache-Control','no-cache, no-store, must-revalidate'); + self.send_header('Pragma','no-cache'); if self.reqtype in ("ogg","ogv"): self.send_header("Content-Type", "video/ogg") else: @@ -297,7 +298,8 @@ class HTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): for key in self.video.info().dict: self.send_header(key, self.video.info().dict[key]) - self.send_header('Cache-Control','no-cache'); + self.send_header('Cache-Control','no-cache, no-store, must-revalidate'); + self.send_header('Pragma','no-cache'); if self.reqtype=="ogg": self.send_header("Content-Type", "video/ogg") @@ -339,7 +341,7 @@ class HTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): except: pass self.vp.destroy() - if not self.headersent: + if not self.headerssent: logger.error("Problem receiving video stream, no headers!") if VPStuff.clientcounter.total == 0: logger.error("Probably VLC hang") -- 2.34.1