Skip to content

Commit

Permalink
People are often searching for "cookie" in the documentation, so use …
Browse files Browse the repository at this point in the history
…the singular form in one place so it is easier to find
  • Loading branch information
cyberw committed Aug 9, 2021
1 parent 20f3d8b commit b8d2aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing-a-locustfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ It contains methods for all HTTP methods: :py:meth:`get <locust.clients.HttpSess
Just like :py:class:`requests.Session`, it preserves cookies between requests so it can easily be used to log in to websites.

.. code-block:: python
:caption: Make a POST request, look at the response and implicitly reuse any session cookies we got for a second request
:caption: Make a POST request, look at the response and implicitly reuse any session cookie we got for a second request
response = self.client.post("/login", {"username":"testuser", "password":"secret"})
print("Response status code:", response.status_code)
Expand Down

0 comments on commit b8d2aa0

Please sign in to comment.