Bogdanp / molten

A minimal, extensible, fast and productive framework for building HTTP APIs with Python 3.6 and later.

Home Page:https://moltenframework.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shouldn't the URI be 127.0.0.1 instead of 127.1?

abhi-jha opened this issue · comments

FILE : https://github.com/Bogdanp/molten/blob/master/docs/source/guide.rst

Example :

`If you then make a curl request to 127.1:8000/hello/Jim you'll get back a JSON response containing the string "Hello Jim!":

$ curl 127.1:8000/hello/Jim
"Hello Jim"`

Try it out! :)

127.1, 127.0.1 and 127.0.0.1 all represent the same IP address due to the way inet_aton works. This may not be true on Windows, I'm not sure.

I just updated the docs to reference 127.0.0.1 instead to avoid any future confusion. Thanks!