Commit Diff


commit - 992dc8a4588c02f13130955dec79af8495fe24a9
commit + 421b4b6a3f248d5c963ae2317cefe4d62f6ff3ea
blob - d7115391b4ed37e89369a9157d1bca878428d07c
blob + 668d13e4f859fc9a1a0e039ca53c507141d6f747
--- paste.pl
+++ paste.pl
@@ -81,12 +81,17 @@ __DATA__
 
 @@ index.html.ep
 <!DOCTYPE html>
+<?php
+   if (substr_count($_SERVER[HTTP_ACCEPT_ENCODING], gzip))
+   ob_start(ob_gzhandler);
+   else ob_start();
+?>
 <html>
 <head>
 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 <meta name="HandheldFriendly" content="true">
-    <title>KISSmo Perl Version 0.7 stable</title>
+    <title>KISSmo Perl Version 1.1 stable</title>
     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
     <style>
         body {
@@ -121,7 +126,7 @@ __DATA__
 </head>
 <body>
     <div class="container">
-        <h1>KISSmo Perl Version 0.7 stable</h1>
+        <h1>KISSmo Perl Version 1.1 stable</h1>
         <form method="post">
             <div class="form-group">
                 <textarea name="content" class="form-control" placeholder="Enter your content" rows="10"></textarea>
@@ -141,6 +146,11 @@ __DATA__
 
 @@ paste.html.ep
 <!DOCTYPE html>
+<?php
+   if (substr_count($_SERVER[HTTP_ACCEPT_ENCODING], gzip))
+   ob_start(ob_gzhandler);
+   else ob_start();
+?>
 <html>
 <head>
 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">