Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 22, 2013
Jens Alfke snej Removed some temporary logging from jsserver.go. 126e871
Commits on Jan 24, 2013
Jens Alfke snej Fixed a stupid bug in atts_since query param parsing
This was breaking replication of docs with attachments.
Fixes #12
a37d1e6
Showing with 2 additions and 5 deletions.
  1. +1 −3 base/jsserver.go
  2. +1 −2  rest/rest.go
4 base/jsserver.go
View
@@ -9,7 +9,7 @@
package base
-import ("log"
+import (
"errors"
"fmt"
@@ -85,9 +85,7 @@ func (server *JSServer) DirectCallFunction(inputs []string) (interface{}, error)
var result otto.Value
var err error
- log.Printf("server.fn = %v", server.fn)
if server.fn.IsUndefined() {
- log.Printf("(undefined)")
result = otto.UndefinedValue()
} else {
inputJS := make([]interface{}, len(inputs))
3  rest/rest.go
View
@@ -50,8 +50,7 @@ func (h *handler) handleGetDoc() error {
if h.getBoolQuery("attachments") {
atts := h.getQuery("atts_since")
if atts != "" {
- var revids []string
- err := json.Unmarshal([]byte(atts), &revids)
+ err := json.Unmarshal([]byte(atts), &attachmentsSince)
if err != nil {
return &base.HTTPError{http.StatusBadRequest, "bad atts_since"}
}

No commit comments for this range

Something went wrong with that request. Please try again.