Skip to content

Commit

Permalink
adding utf8 charset to contenttype header on activitystreams list
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed Oct 14, 2010
1 parent fcfb6ac commit 51039bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -25,6 +25,7 @@ Here's an example of this whole thingy working: I log all Portland, OR 911 calls
By default this will convert any incoming XML RSS/ATOM feed data into JSON [ActivityStreams](http://activitystrea.ms) format. ActivityStreams are the new hotness, pure XML ATOM/RSS is old and busted. Here's an example of an ActivityStreams formatted feed item:

{
"postedTime":"2010-10-14T00:58:32Z",
"object": {
"permalinkUrl": "http://rss.cnn.com/~r/rss/cnn_latest/~3/s52R1lImWu0/index.html",
"objectType": "article",
Expand Down
2 changes: 1 addition & 1 deletion lists/feed.js
@@ -1,5 +1,5 @@
function(head, req){
start({"headers": {"Content-Type" : "application/json"}});
start({"headers": {"Content-Type" : "application/json;charset=utf-8"}});
if ('callback' in req.query) send(req.query['callback'] + "(");
var started = false;
send("{\"items\": [\n");
Expand Down

0 comments on commit 51039bc

Please sign in to comment.