Skip to content
Snippets Groups Projects
Commit 3868108a authored by Gilbert L Bernstein's avatar Gilbert L Bernstein
Browse files

Fixed bug in `respond_200`

parent 9f5a4c8c
No related branches found
No related tags found
No related merge requests found
......@@ -146,10 +146,10 @@ class socket:
cls.URLs[url] = [method, response, body]
@classmethod
def respond_200(cls, url, body, **kwargs):
def respond_200(cls, url, response_body, **kwargs):
response = ("HTTP/1.0 200 OK\r\n" +
"\r\n" +
body).encode()
response_body).encode()
cls.respond(url, response, **kwargs)
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment