Just read the content
This commit is contained in:
parent
d2f0789de3
commit
83dff59487
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|||
|
||||
def do_POST(self):
|
||||
length = int(self.headers['Content-Length'])
|
||||
post_data = urllib.parse.parse_qs(self.rfile.read(length).decode('utf-8'))
|
||||
post_data = self.rfile.read(length).decode('utf-8')
|
||||
|
||||
# Print on stdout
|
||||
print(post_data)
|
||||
|
|
Loading…
Reference in a new issue