skip to Main Content

missing http headers in web server – Nginx

Am using BaseHTTPRequestHandler http server and copy/pasted the code from the interwebs. Here's the part where the response/header is set class S(BaseHTTPRequestHandler): def _set_response(self): self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers() But when calling the server with curl the response is: curl: (1)…

VIEW QUESTION
Back To Top
Search