Open liweihaha opened 10 months ago
def interceptor(request): if request.url == 'https://www.baidu.com': request.create_response( status_code=200, headers={'Content-Type': 'application/json'}, # Optional headers dictionary body={'ceshi': '1111'} ) 这样写会直接报错,please help me ,thinks
def interceptor(request): if request.url == 'https://www.baidu.com': request.create_response( status_code=200, headers={'Content-Type': 'application/json'}, # Optional headers dictionary body={'ceshi': '1111'} ) 这样写会直接报错,please help me ,thinks