Skip to content

Instantly share code, notes, and snippets.

@kubicek
Created January 12, 2010 21:39
Show Gist options
  • Save kubicek/275641 to your computer and use it in GitHub Desktop.
Save kubicek/275641 to your computer and use it in GitHub Desktop.
function(doc, req) {
if(doc) {
return { \"headers\" : {\"Content-Type\" : \"application/xml\"}, \"body\" : doc.content }
} else {
return {\"code\": 404, \"body\": \"Not-found\"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment