Browse Source

add comment about using the email module to parse the SSDP requests..

[git-p4: depot-paths = "//depot/": change = 733]
replace/5b80aeb26dc425aaddcd5182126c969e5cc04cbb
John-Mark Gurney 19 years ago
parent
commit
1c4653eb81
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      SSDP.py

+ 2
- 0
SSDP.py View File

@@ -47,6 +47,8 @@ class SSDPServer(DatagramProtocol):
"""Handle a received multicast datagram."""

# Break up message in to command and headers
# TODO: use the email module after trimming off the request line..
# This gets us much better header support.

header, payload = data.split('\r\n\r\n')
lines = header.split('\r\n')


Loading…
Cancel
Save