There was an error while loading. Please reload this page.
1 parent 03644f6 commit bc5465cCopy full SHA for bc5465c
tasks/http_upload.js
@@ -21,6 +21,7 @@ module.exports = function(grunt) {
21
// Merge task-specific and/or target-specific options with these defaults.
22
var options = this.options({
23
method: 'POST',
24
+ headers: {},
25
url: ''
26
});
27
@@ -52,6 +53,7 @@ module.exports = function(grunt) {
52
53
// HTTP request
54
rest.request(options.url, {
55
method: options.method,
56
+ headers: options.headers,
57
multipart: true,
58
data: reqData
59
}).on('complete', function(data, response) {
0 commit comments