Commit b0a81868 authored by Ian Briggs's avatar Ian Briggs
Browse files

hopefully help people with headers in their request

parent 96028d58
......@@ -23,7 +23,7 @@ one.
>>> test.socket.respond(url, b"HTTP/1.0 200 OK\r\n" +
... b"Header1: Value1\r\n\r\n" +
... b"<div>Form submitted</div>", method="POST", body=request_body)
>>> headers, body = browser.request(url, request_body)
>>> headers, body = browser.request(url, payload=request_body)
>>> req = test.socket.last_request(url).decode().lower()
>>> req.startswith("post")
True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment