Skip to content

Commit 0642119

Browse files
committed
Basic implementation off the Get and Post request middleware
1 parent 75c0054 commit 0642119

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
@@ -4,6 +4,7 @@
44
from pypulse.Template import Template
55
from pypulse.Utils import execute_ast_view_request
66

7+
78
class RequestHandler(http.server.SimpleHTTPRequestHandler):
89
def __init__(self, *args, **kwargs):
910
super().__init__(*args, directory=Template.STATIC_PATH, **kwargs)
@@ -54,7 +55,7 @@ def do_POST(self):
5455
'Accept-Encoding': self.headers.get('Accept-Encoding'),
5556
'Accept-Language': self.headers.get('Accept-Language')
5657
},
57-
'temp_post_body': temp_post_body
58+
'body': temp_post_body
5859
}
5960

6061
render = execute_ast_view_request(

0 commit comments

Comments
 (0)