Skip to content

Commit

Permalink
Merge pull request #4 from hirokiky/patch-1
Browse files Browse the repository at this point in the history
Fixed wrong code on doc
  • Loading branch information
andrewgodwin committed Jul 13, 2015
2 parents d048527 + 768722d commit 0cf0b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app, and put this in a ``consumers.py`` file in the app::
@consumer("django.wsgi.request")
def http_consumer(response_channel, path, **kwargs):
response = HttpResponse("Hello world! You asked for %s" % path)
Channel(response_channel).send(response.channel_encode())
Channel(response_channel).send(**response.channel_encode())

The most important thing to note here is that, because things we send in
messages must be JSON-serialisable, the request and response messages
Expand Down

0 comments on commit 0cf0b7c

Please sign in to comment.