From afdf8a014236452e098ab1266c9a9315824f8103 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 19 Dec 2022 10:41:43 -0500 Subject: url helpers, cgi response format --- sample-cgi-handler.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sample-cgi-handler.sh') diff --git a/sample-cgi-handler.sh b/sample-cgi-handler.sh index afd4ada..7cef511 100755 --- a/sample-cgi-handler.sh +++ b/sample-cgi-handler.sh @@ -1,5 +1,14 @@ #!/bin/bash -echo "Content-type: text/plain" +echo "Content-type: application/activity+json" echo "" -echo "This is a random value from bash: $RANDOM on $(date)" +echo '{ + "@context": "https://www.w3.org/ns/activitystreams", + "type": "OrderedCollection", + "totalItems": 1, + "items": [ + { + "type": "Note", + "content": "hi" + }, + ]}' exit 0 -- cgit v1.2.3