Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from cesararevalo/master
Browse files Browse the repository at this point in the history
Adding a way to make the requests secure (https ajax)
  • Loading branch information
Kyo Nagashima committed Nov 26, 2011
2 parents b3bfbce + b7067b2 commit 46f75a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jquery.query-yql.js
Expand Up @@ -21,11 +21,13 @@
envUrl = undefined;
}

var scheme = ('https:' == document.location.protocol ? 'https' : 'http');

if (envUrl === "all") {
envUrl = "http://datatables.org/alltables.env";
envUrl = scheme + "://datatables.org/alltables.env";
}

var url = "http://query.yahooapis.com/v1/public/yql?callback=?";
var url = scheme + "://query.yahooapis.com/v1/public/yql?callback=?";
var data = {
format: type,
q: statement
Expand Down

0 comments on commit 46f75a6

Please sign in to comment.