mirror of
https://github.com/donl/slouch.git
synced 2026-06-30 06:11:57 -06:00
parent
67d5644dce
commit
010a535dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ var Attachment = function (slouch) {
|
|||
Attachment.prototype.create = function (dbName, docId, attachmentName, data, contentType, rev) {
|
||||
return this._slouch._req({
|
||||
uri: this._slouch._url + '/' + encodeURIComponent(dbName) + '/' + encodeURIComponent(
|
||||
docId) + '/' + encodeURIComponent(attachmentName) + '?rev=' + encodeURIComponent(rev),
|
||||
docId) + '/' + attachmentName + '?rev=' + encodeURIComponent(rev),
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': contentType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue