Skip to content

Commit 4d5ff11

Browse files
committed
Add protcol matching when making AJAX request.
1 parent 2179f17 commit 4d5ff11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jquery.ziptastic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
requests[country] = {};
1919
}
2020
if(!requests[country][zip]) {
21-
requests[country][zip] = $.getJSON('http://zip.getziptastic.com/v2/' + country + '/' + zip);
21+
requests[country][zip] = $.getJSON(location.protocol + '//zip.getziptastic.com/v2/' + country + '/' + zip);
2222
}
2323

2424
// Bind to the finished request

0 commit comments

Comments
 (0)