Skip to content

Commit

Permalink
Remove path_info from request message format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgodwin committed Nov 6, 2015
1 parent c937c4d commit 5106c78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions channels/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def encode_request(request):
"cookies": request.COOKIES,
"meta": {k: v for k, v in request.META.items() if not k.startswith("wsgi")},
"path": request.path,
"path_info": request.path_info,
"method": request.method,
"reply_channel": request.reply_channel,
}
Expand All @@ -33,8 +32,9 @@ def decode_request(value):
request.META = value['meta']
request.path = value['path']
request.method = value['method']
request.path_info = value['path_info']
request.reply_channel = value['reply_channel']
# We don't support non-/ script roots
request.path_info = value['path']
return request


Expand Down
1 change: 0 additions & 1 deletion docs/message-standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Contains the following keys:
* cookies: Dict of cookies as {cookie_name: cookie_value} (names and values are strings)
* meta: Dict of HTTP headers and info as defined in the Django Request docs (names and values are strings)
* path: String, full path to the requested page, without query string or domain
* path_info: String, like ``path`` but without any script prefix. Often just ``path``.
* method: String, upper-cased HTTP method

Should come with an associated ``reply_channel`` which accepts HTTP Responses.
Expand Down

0 comments on commit 5106c78

Please sign in to comment.