Skip to content

Commit

Permalink
Merge pull request CesiumGS#6468 from AnalyticalGraphicsInc/resource-…
Browse files Browse the repository at this point in the history
…delete-data

Allow Resource.delete to send data
  • Loading branch information
Tom Fili authored and hanbollar committed Apr 20, 2018
2 parents ecdfd18 + e3d167e commit 3b37fab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/Resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,7 @@ define([
*
* @param {String|Object} options A url or an object with the following properties
* @param {String} options.url The url of the resource.
* @param {Object} [options.data] Data that is posted with the resource.
* @param {Object} [options.queryParameters] An object containing query parameters that will be sent when retrieving the resource.
* @param {Object} [options.templateValues] Key/Value pairs that are used to replace template values (eg. {x}).
* @param {Object} [options.headers={}] Additional HTTP headers that will be sent.
Expand All @@ -1446,7 +1447,8 @@ define([
return resource.delete({
// Make copy of just the needed fields because headers can be passed to both the constructor and to fetch
responseType: options.responseType,
overrideMimeType: options.overrideMimeType
overrideMimeType: options.overrideMimeType,
data: options.data
});
};

Expand Down Expand Up @@ -1570,6 +1572,7 @@ define([
*
* @param {Object} data Data that is posted with the resource.
* @param {Object} [options] Object with the following properties:
* @param {Object} [options.data] Data that is posted with the resource.
* @param {String} [options.responseType] The type of response. This controls the type of item returned.
* @param {Object} [options.headers] Additional HTTP headers to send with the request, if any.
* @param {String} [options.overrideMimeType] Overrides the MIME type returned by the server.
Expand Down

0 comments on commit 3b37fab

Please sign in to comment.