FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: sending http request to localhost to avoid https redirect by hassaanp · Pull Request #38036 · nodejs/node · GitHub

/ node Public

doc: sending http request to localhost to avoid https redirect - #38036

Closed
hassaanp wants to merge 3 commits into
nodejs:masterfrom
hassaanp:doc/fix-http-get-example
Closed

doc: sending http request to localhost to avoid https redirect#38036
hassaanp wants to merge 3 commits into
nodejs:masterfrom
hassaanp:doc/fix-http-get-example

Conversation

hassaanp commented Apr 2, 2021

Copy link
Copy Markdown
Contributor

In the JSON fetching example, http.get request is being sent to an http url that redirects to https. This causes the http.get request to fail. To avoid redirect errors, a local http server is set up that returns a json response.

Fixes: #37907

In the JSON fetching example, http.get request is being sent to an http url that redirects to https. This causes the http.get request to fail. To avoid redirect errors, a local http server is set up that returns a json response.

Fixes: nodejs#37907
nodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. labels Apr 2, 2021
Comment thread doc/api/http.md Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

hassaanp commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

@aduh95 thank you for the suggestions. I have gone with the JSON.stringify approach.

Comment thread doc/api/http.md Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Apr 2, 2021
jasnell pushed a commit that referenced this pull request Apr 6, 2021
In the JSON fetching example, http.get request is being sent to
an http url that redirects to https. This causes the http.get
request to fail. To avoid redirect errors, a local http server
is set up that returns a json response.

Fixes: #37907

PR-URL: #38036
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

jasnell commented Apr 6, 2021

Copy link
Copy Markdown
Member

Landed in 0d34767

jasnell closed this Apr 6, 2021
targos pushed a commit that referenced this pull request May 1, 2021
In the JSON fetching example, http.get request is being sent to
an http url that redirects to https. This causes the http.get
request to fail. To avoid redirect errors, a local http server
is set up that returns a json response.

Fixes: #37907

PR-URL: #38036
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams mentioned this pull request May 3, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: nodejs > http > get > Example KO

8 participants


Back | FazBrowse Home | New Git URL