Permalink
Browse files

fix mistake in README

  • Loading branch information...
Robert Newson
Robert Newson committed Oct 10, 2009
1 parent 834f183 commit 244df305fdb6d25cd24dda117eec741ca7a12bf1
Showing with 2 additions and 1 deletion.
  1. +1 −1 README.md
  2. +1 −0 src/main/java/com/github/rnewson/couchdb/lucene/Main.java
View
@@ -258,7 +258,7 @@ function(doc) {
function(doc) {
var result = new Document();
for(var a in doc._attachments) {
- result.add_attachment(a, {"field":"attachment"});
+ result.attachment(a, {"field":"attachment"});
}
return result;
}
@@ -118,6 +118,7 @@ public int getMaxForRoute(final HttpRoute route) {
private static void setupContext(final Context context) {
context.addFilter(new FilterHolder(new GzipFilter()), "/*", Handler.DEFAULT);
+ context.setErrorHandler(new JSONErrorHandler());
}
}

0 comments on commit 244df30

Please sign in to comment.