diff --git a/README.md b/README.md index dbd00e1..a9f6384 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You can specify results in a certain timeframe. Working values listed below: ```js var google = require('google') -// assign one of the values below. Defaults to google.resultsTimeFrame = 'y' for past year results +// assign one of the values below google.resultsTimeFrame = 'h' // information indexed in the past hour google.resultsTimeFrame = 'd' // information indexed in the past day google.resultsTimeFrame = 'w' // information indexed in the past week diff --git a/lib/google.js b/lib/google.js index 6368fde..4f5bf1b 100644 --- a/lib/google.js +++ b/lib/google.js @@ -32,6 +32,7 @@ var igoogle = function (query, start, callback) { } var newUrl = util.format(URL, google.tld, google.lang, querystring.escape(query), start, google.resultsPerPage) + var requestOptions = { url: newUrl, method: 'GET'