Permalink
Browse files

Fixed a stupid bug in atts_since query param parsing

This was breaking replication of docs with attachments.
Fixes #12
  • Loading branch information...
snej committed Jan 24, 2013
1 parent 126e871 commit a37d1e6ade22a6c6cb0b1a70178cc42221307e8c
Showing with 1 addition and 2 deletions.
  1. +1 −2 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"}
}

0 comments on commit a37d1e6

Please sign in to comment.