Added a note about getting a 301 when using httpie and forgetting to add a trailing slash to a url

This commit is contained in:
Mark Wright 2016-02-22 11:53:44 -08:00
parent a568d16ae4
commit eb53edf576

View File

@ -331,7 +331,7 @@ You can install httpie using pip:
pip install httpie pip install httpie
Finally, we can get a list of all of the snippets: Finally, we can get a list of all of the snippets (note the trailing / on the snippets/ url below. If you don't include it you may get a confusing '301 Moved Permanently' response because Django's default behavior is to redirect to a url with a trailing /):
http http://127.0.0.1:8000/snippets/ http http://127.0.0.1:8000/snippets/