Skip to content

Commit 279f00b

Browse files
committed
docs($http): use HTTPS URLs in JSONP example
1 parent 4eb9522 commit 279f00b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/http.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,11 @@ function $HttpProvider() {
518518
<button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
519519
<button id="samplejsonpbtn"
520520
ng-click="updateModel('JSONP',
521-
'http://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
521+
'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
522522
Sample JSONP
523523
</button>
524524
<button id="invalidjsonpbtn"
525-
ng-click="updateModel('JSONP', 'http://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
525+
ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
526526
Invalid JSONP
527527
</button>
528528
<pre>http status code: {{status}}</pre>

0 commit comments

Comments
 (0)