diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-31 02:20:02 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-31 02:20:02 +0000 |
commit | c500a2be38afcbb5688537d97c7c3ee30a57dba4 (patch) | |
tree | 79cf1884ca7529299646b567b7705378bdf08fd3 /sample-cgi-handler.sh | |
parent | 74ffcfe6b2c80b7cf459798dc42bd278075ccb50 (diff) | |
download | communique-c500a2be38afcbb5688537d97c7c3ee30a57dba4.tar.gz |
parse and persist feeds from handlers
Diffstat (limited to 'sample-cgi-handler.sh')
-rwxr-xr-x | sample-cgi-handler.sh | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sample-cgi-handler.sh b/sample-cgi-handler.sh index 5cafc84..b9b195d 100755 --- a/sample-cgi-handler.sh +++ b/sample-cgi-handler.sh @@ -1,14 +1,9 @@ #!/bin/bash -echo "Content-type: application/activity+json" +echo "Content-type: application/atom+xml" echo "" -echo '{ - "@context": "https://www.w3.org/ns/activitystreams", - "type": "OrderedCollection", - "totalItems": 1, - "orderedItems": [ - { - "type": "Note", - "content": "hi" - } - ]}' +echo '<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <content>asd</content> + </entry> +</feed>' exit 0 |