Skip to content

Commit b7b456b

Browse files
committed
Merge pull request #1213 from just-boris/master
use https reddit endpoint
2 parents b35c1c9 + a7b676e commit b7b456b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/advanced/AsyncActions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export function fetchPosts(reddit) {
350350
// In this case, we return a promise to wait for.
351351
// This is not required by thunk middleware, but it is convenient for us.
352352

353-
return fetch(`http://www.reddit.com/r/${reddit}.json`)
353+
return fetch(`https://www.reddit.com/r/${reddit}.json`)
354354
.then(response => response.json())
355355
.then(json =>
356356

@@ -438,7 +438,7 @@ function receivePosts(reddit, json) {
438438
function fetchPosts(reddit) {
439439
return dispatch => {
440440
dispatch(requestPosts(reddit))
441-
return fetch(`http://www.reddit.com/r/${reddit}.json`)
441+
return fetch(`https://www.reddit.com/r/${reddit}.json`)
442442
.then(response => response.json())
443443
.then(json => dispatch(receivePosts(reddit, json)))
444444
}

docs/advanced/ExampleRedditAPI.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function receivePosts(reddit, json) {
6464
function fetchPosts(reddit) {
6565
return dispatch => {
6666
dispatch(requestPosts(reddit))
67-
return fetch(`http://www.reddit.com/r/${reddit}.json`)
67+
return fetch(`https://www.reddit.com/r/${reddit}.json`)
6868
.then(response => response.json())
6969
.then(json => dispatch(receivePosts(reddit, json)))
7070
}

examples/async/actions/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function receivePosts(reddit, json) {
3838
function fetchPosts(reddit) {
3939
return dispatch => {
4040
dispatch(requestPosts(reddit))
41-
return fetch(`http://www.reddit.com/r/${reddit}.json`)
41+
return fetch(`https://www.reddit.com/r/${reddit}.json`)
4242
.then(response => response.json())
4343
.then(json => dispatch(receivePosts(reddit, json)))
4444
}

0 commit comments

Comments
 (0)