Skip to content

Commit

Permalink
use https
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Montgomery committed Sep 15, 2013
1 parent 5c761f4 commit 8329955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/domainr.js
Expand Up @@ -3,15 +3,15 @@ var request = require("request")

exports.search = function(query, callback) {

request("http://domai.nr/api/json/search?q=" + encodeURI(query), function(err, response, body) {
request("https://domai.nr/api/json/search?q=" + encodeURI(query), function(err, response, body) {
callback( JSON.parse(body) )
})

}

exports.info = function(query, callback) {

request("http://domai.nr/api/json/info?q=" + query, function(err, response, body) {
request("https://domai.nr/api/json/info?q=" + query, function(err, response, body) {

if (response.statusCode === 200) {
callback( JSON.parse(body) )
Expand Down

0 comments on commit 8329955

Please sign in to comment.