Fix Metaproxy stops logging after check config failed MP-590
[metaproxy-moved-to-github.git] / etc / cgi.sh
index 2e1e17c..e8efe63 100755 (executable)
@@ -1,7 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 echo "Content-Type: text/plain"
 echo ""
+echo "metaproxy/etc/cgi.sh"
+pwd
+env
+if test $CONTENT_LENGTH; then
+       echo "Echo content of length: $CONTENT_LENGTH:"
+       read -n $CONTENT_LENGTH c
+       echo "$c"
+fi
 
-echo "hello, world."
-sleep 1