Skip to content

Commit

Permalink
Update all reddit.com api request links (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
sihaelov authored and timdorr committed Nov 23, 2016
1 parent 524da98 commit c8567dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/advanced/AsyncActions.md
Expand Up @@ -439,7 +439,7 @@ function receivePosts(subreddit, json) {
function fetchPosts(subreddit) {
return dispatch => {
dispatch(requestPosts(subreddit))
return fetch(`http://www.reddit.com/r/${subreddit}.json`)
return fetch(`https://www.reddit.com/r/${subreddit}.json`)
.then(response => response.json())
.then(json => dispatch(receivePosts(subreddit, json)))
}
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/ExampleRedditAPI.md
Expand Up @@ -64,7 +64,7 @@ function receivePosts(subreddit, json) {
function fetchPosts(subreddit) {
return dispatch => {
dispatch(requestPosts(subreddit))
return fetch(`http://www.reddit.com/r/${subreddit}.json`)
return fetch(`https://www.reddit.com/r/${subreddit}.json`)
.then(response => response.json())
.then(json => dispatch(receivePosts(subreddit, json)))
}
Expand Down

0 comments on commit c8567dc

Please sign in to comment.