Skip to content

Commit

Permalink
rename #stream opt.data to opt.param
Browse files Browse the repository at this point in the history
  • Loading branch information
ddo committed May 26, 2014
1 parent 4025228 commit 8f48366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ create a stream
#### options
* ``url``: ``String`` Twitter endpoint
* ``method``: ``String`` default ``GET``
* ``data``: ``Object`` Twitter parameters
* ``param``: ``Object`` Twitter parameters

#### return
streaming object
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ ChirpStream.prototype.stream = function(url, opt) {
}

opt.method = opt.method || 'GET';
opt.data = opt.data || {};
opt.param = opt.param || {};

var request_data = {
url: url,
method: opt.method,
data: opt.data
data: opt.param
};

var readable = request({
Expand Down

0 comments on commit 8f48366

Please sign in to comment.