Fix example redirecting_a_url. PEBKAC

This commit is contained in:
Roberto Abdelkader Martínez Pérez committed 2019-11-20 11:33:56 +01:00
1 parent 4c3fe37616
commit 850baf95f7
1 file changed
+2 -2
@@ -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: In this example, we read the header ``User-Agent`` and feed it to the response:
.. code-block:: bash .. code-block:: bash
echo -n 302 | kapow set /response/status kapow set /response/headers/Location 'http://example.org'
echo -n http://foobar-url.example | kapow set /response/headers/Location kapow set /response/status 301