mirror of
https://github.com/ysoftdevs/wapifuzz.git
synced 2026-01-13 15:13:29 +01:00
15 lines
427 B
Python
15 lines
427 B
Python
from http.server import BaseHTTPRequestHandler
|
|
|
|
class RequestHandler(BaseHTTPRequestHandler):
|
|
def _set_headers(self):
|
|
self.send_response(200)
|
|
self.send_header('Content-type', 'application/json')
|
|
self.end_headers()
|
|
|
|
def do_GET(self):
|
|
self._set_headers()
|
|
self.wfile.write(b'invalid json')
|
|
|
|
def send_error(self, code, message=None, explain=None):
|
|
pass
|