summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-17 19:12:33 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-17 19:12:33 (GMT)
commitba65a6d43bfcc5722b345fde0dcd27c78e46c1c9 (patch)
tree92bca45318ffaf17b23048b986dfa9f97e4b00c2
parent821cc0565b986dfc50ce5af75cdc2b2187321fd7 (diff)
json output from mod_perl should work now
-rwxr-xr-xauthtoken.json11
1 files changed, 5 insertions, 6 deletions
diff --git a/authtoken.json b/authtoken.json
index 96342ef..7112b43 100755
--- a/authtoken.json
+++ b/authtoken.json
@@ -1,9 +1,8 @@
#!/usr/bin/perl
-print "Content-type: text/plain\n\n";
-print "mod_perl 2.0 rocks!\n";
+print "Content-type: application/json\n\n";
-//{
-// "username": "test",
-// "token": "SDLIIBqCypa3bIRQEv9GMAPF4GHqelBD"
-//}
+print "{\n";
+print " 'username': 'test',\n";
+print " 'token': 'SDLIIBqCypa3bIRQEv9GMAPF4GHqelBD'\n";
+print "}\n";