Revert "Update jQlone to use HTTPS"

This reverts commit 099cb69c64.
This commit is contained in:
Popey456963 2015-03-12 18:16:32 +00:00
parent db27066a3f
commit 5310238366

View file

@ -9,14 +9,14 @@ module.exports = $ = (input) ->
# Non-standard jQuery stuff. Don't use outside of server.
$._debug = false
$._server = 'https://direct.codecombat.com'
$._server = 'http://direct.codecombat.com'
$._cookies = request.jar()
$.when = Deferred.when
$.ajax = (options) ->
responded = false
url = options.url
if url.indexOf('https')
if url.indexOf('http')
url = '/' + url unless url[0] is '/'
url = $._server + url
@ -31,7 +31,7 @@ $.ajax = (options) ->
method: options.type
body: data
, (error, response, body) ->
console.log 'HTTPS Request:' + JSON.stringify options if $._debug and not error
console.log 'HTTP Request:' + JSON.stringify options if $._debug and not error
if responded
console.log '\t↳Already returned before.' if $._debug
return