Skip to content

Commit acf6a34

Browse files
committed
little bug in do_POST
1 parent 2de8571 commit acf6a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pypulse/Socket/request_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def do_POST(self):
4040
temp_post_body = {}
4141
for i in post_body.decode('utf-8').split('&'):
4242
element = i.split('=')
43-
temp_post_body[element[0]] = element[1]
43+
if len(element) == 2:
44+
temp_post_body[element[0]] = element[1]
4445

4546
current_view = View.CallView(self.path)
4647

0 commit comments

Comments
 (0)