From eb53edf5762c1546f0b15acec7d533d7dfaf7d0e Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Mon, 22 Feb 2016 11:53:44 -0800 Subject: [PATCH 1/2] Added a note about getting a 301 when using httpie and forgetting to add a trailing slash to a url --- docs/tutorial/1-serialization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 239d54204..470fc85a3 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -331,7 +331,7 @@ You can install httpie using pip: 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/ From 5b0503ab093ae27b37c6d879e6a5141ddf97845b Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Tue, 23 Feb 2016 10:19:51 -0800 Subject: [PATCH 2/2] Changed the note to be less verbose --- docs/tutorial/1-serialization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 470fc85a3..cf9d01988 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -331,9 +331,9 @@ You can install httpie using pip: pip install httpie -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 /): +Finally, we can get a list of all of the snippets: - http http://127.0.0.1:8000/snippets/ + http http://127.0.0.1:8000/snippets/ # Note the trailing slash HTTP/1.1 200 OK ...