{"action":"created","issue":{"url":"https://api.github.com/repos/twolfson/grunt-curl/issues/36","labels_url":"https://api.github.com/repos/twolfson/grunt-curl/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/twolfson/grunt-curl/issues/36/comments","events_url":"https://api.github.com/repos/twolfson/grunt-curl/issues/36/events","html_url":"https://github.com/twolfson/grunt-curl/issues/36","id":112130925,"number":36,"title":"custom request options in curl-dir cause parse error","user":{"login":"solazs","id":3252842,"avatar_url":"https://avatars.githubusercontent.com/u/3252842?v=3","gravatar_id":"","url":"https://api.github.com/users/solazs","html_url":"https://github.com/solazs","followers_url":"https://api.github.com/users/solazs/followers","following_url":"https://api.github.com/users/solazs/following{/other_user}","gists_url":"https://api.github.com/users/solazs/gists{/gist_id}","starred_url":"https://api.github.com/users/solazs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solazs/subscriptions","organizations_url":"https://api.github.com/users/solazs/orgs","repos_url":"https://api.github.com/users/solazs/repos","events_url":"https://api.github.com/users/solazs/events{/privacy}","received_events_url":"https://api.github.com/users/solazs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-19T12:06:37Z","updated_at":"2015-11-19T00:11:32Z","closed_at":"2015-10-20T17:35:01Z","body":"Hi!\r\nI've just run into a problem and I'm pretty sure it's a bug.\r\n\r\nI'm trying to use curl-dir, but need to send a cookie as well. Part of my gruntfile:\r\n\r\n``` javascript\r\n\r\n        'curl-dir': {\r\n            validation: {\r\n                src: [\r\n                    {\r\n                        url: backendUrl + \"/patches/meta\",\r\n                        cookie: apiToken\r\n                    },\r\n                    {\r\n                        url: backendUrl + \"/devices/meta\",\r\n                        cookie: apiToken\r\n                    }\r\n                ],\r\n                dest: 'lib/validation-rules'\r\n            }\r\n        }\r\n\r\n```\r\n\r\nExecution of the task stops with an error (verbose output):\r\n\r\n```\r\nRunning \"curl-dir:validation\" (curl-dir) task\r\nVerifying property curl-dir.validation exists in config...OK\r\nWarning: Object #<Object> has no method 'indexOf' Use --force to continue.\r\n```\r\n\r\nIf only strings are given in the src array it works fine, but according to the [docs](https://github.com/twolfson/grunt-curl#using-request-options-1) this should work as well.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/twolfson/grunt-curl/issues/comments/157905278","html_url":"https://github.com/twolfson/grunt-curl/issues/36#issuecomment-157905278","issue_url":"https://api.github.com/repos/twolfson/grunt-curl/issues/36","id":157905278,"user":{"login":"solazs","id":3252842,"avatar_url":"https://avatars.githubusercontent.com/u/3252842?v=3","gravatar_id":"","url":"https://api.github.com/users/solazs","html_url":"https://github.com/solazs","followers_url":"https://api.github.com/users/solazs/followers","following_url":"https://api.github.com/users/solazs/following{/other_user}","gists_url":"https://api.github.com/users/solazs/gists{/gist_id}","starred_url":"https://api.github.com/users/solazs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solazs/subscriptions","organizations_url":"https://api.github.com/users/solazs/orgs","repos_url":"https://api.github.com/users/solazs/repos","events_url":"https://api.github.com/users/solazs/events{/privacy}","received_events_url":"https://api.github.com/users/solazs/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T00:11:32Z","updated_at":"2015-11-19T00:11:32Z","body":"Hi, just reporting back. \r\nIssue was not with grunt-curl, my setup was broken, sorry for the inconvenience!"}}