Browse files

A couple doc typos

  • Loading branch information...
1 parent 01aaf19 commit 677e41722a5eaf3a4ce70862bb670a0f86f223ec @ianb ianb committed Jul 1, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/do-it-yourself.txt
  2. +1 −1 tests/test_response.txt
View
2 docs/do-it-yourself.txt
@@ -31,7 +31,7 @@ A very simple application looks like this:
The ``environ`` argument is a dictionary with values like the environment in a CGI request. The header ``Host:``, for instance, goes in ``environ['HTTP_HOST']``. The path is in ``environ['SCRIPT_NAME']`` (which is the path leading *up to* the application), and ``environ['PATH_INFO']`` (the remaining path that the application should interpret).
-We won't focus much on the server, but we will use WebOb to handle the application. WebOb in a way has a simple server interface. To use it you create a new request with ``req = webob.Request('http://localhost/test')``, and then call the application with ``resp = req.get_response(app)``. For example:
+We won't focus much on the server, but we will use WebOb to handle the application. WebOb in a way has a simple server interface. To use it you create a new request with ``req = webob.Request.blank('http://localhost/test')``, and then call the application with ``resp = req.get_response(app)``. For example:
.. code-block:: python
View
2 tests/test_response.txt
@@ -152,7 +152,7 @@ request object attached.
'http://localhost/test2.html'
There's some conditional response handling too (you have to turn on
-conditioanl_response)::
+conditional_response)::
>>> res = Response(conditional_response=True)
>>> req = Request.blank('/')

0 comments on commit 677e417

Please sign in to comment.