Skip to content

Commit 16c544a

Browse files
authored
Merge pull request #270 from go-kivik/bug268-v3
Fix escaping of doc IDs
2 parents 2b1cc4b + a8304e4 commit 16c544a

File tree

2 files changed

+287
-294
lines changed

2 files changed

+287
-294
lines changed

db.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (d *db) Query(ctx context.Context, ddoc, view string, opts map[string]inter
150150

151151
// Get fetches the requested document.
152152
func (d *db) Get(ctx context.Context, docID string, options map[string]interface{}) (*driver.Document, error) {
153-
resp, rev, err := d.get(ctx, http.MethodGet, chttp.EncodeDocID(docID), options)
153+
resp, rev, err := d.get(ctx, http.MethodGet, docID, options)
154154
if err != nil {
155155
return nil, err
156156
}

0 commit comments

Comments
 (0)