From 850baf95f76dfce143abe8f619d8697dc4cf315b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 20 Nov 2019 11:33:56 +0100 Subject: [PATCH] Fix example redirecting_a_url. PEBKAC --- doc/{redirecting_a_url-BROKEN.rst => redirecting_a_url.rst} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename doc/{redirecting_a_url-BROKEN.rst => redirecting_a_url.rst} (68%) diff --git a/doc/redirecting_a_url-BROKEN.rst b/doc/redirecting_a_url.rst similarity index 68% rename from doc/redirecting_a_url-BROKEN.rst rename to doc/redirecting_a_url.rst index 7409cea..b35cd4c 100644 --- a/doc/redirecting_a_url-BROKEN.rst +++ b/doc/redirecting_a_url.rst @@ -8,5 +8,5 @@ We can do them in Kapow! with little effort: In this example, we read the header ``User-Agent`` and feed it to the response: .. code-block:: bash - echo -n 302 | kapow set /response/status - echo -n http://foobar-url.example | kapow set /response/headers/Location + kapow set /response/headers/Location 'http://example.org' + kapow set /response/status 301