Skip to content

Commit

Permalink
Merge pull request #270 from go-kivik/bug268-v3
Browse files Browse the repository at this point in the history
Fix escaping of doc IDs
  • Loading branch information
flimzy authored Jan 26, 2021
2 parents 2b1cc4b + a8304e4 commit 16c544a
Show file tree
Hide file tree
Showing 2 changed files with 287 additions and 294 deletions.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (d *db) Query(ctx context.Context, ddoc, view string, opts map[string]inter

// Get fetches the requested document.
func (d *db) Get(ctx context.Context, docID string, options map[string]interface{}) (*driver.Document, error) {
resp, rev, err := d.get(ctx, http.MethodGet, chttp.EncodeDocID(docID), options)
resp, rev, err := d.get(ctx, http.MethodGet, docID, options)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 16c544a

Please sign in to comment.