From 4d7a1a3ca2a27b14d0b408e946baa8a8ddb42fe9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 11 May 2024 13:27:24 +0800 Subject: Make hybrid.cgi spit environment --- hybrid.cgi | 10 ++++++++++ test.cgi | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100755 hybrid.cgi delete mode 100755 test.cgi diff --git a/hybrid.cgi b/hybrid.cgi new file mode 100755 index 0000000..49ede51 --- /dev/null +++ b/hybrid.cgi @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +import sys +import os + +sys.stdout.write("Content-Type: text/plain\r\n") +sys.stdout.write("\r\n") + +import pprint +pprint.pprint(os.environ) diff --git a/test.cgi b/test.cgi deleted file mode 100755 index e100958..0000000 --- a/test.cgi +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -printf 'Content-Type: text/plain\r\n' -printf '\r\n' -env -- cgit 1.4.1-2-gfad0