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