Road to Localhost

/im_viewer에서
if url[0] == '/':
url = "http://localhost:8000" + url
elif ("localhost" in urlp.netloc) or ("127.0.0.1" in urlp.netloc):
data = open('error.png', 'rb').read()
img = base64.b64encode(data).decode('utf8')
return render_template('img_viewer.html', img=img)

URL을 어떻게 만들어야 이것을 통과해 localhost로 가는지 모르겠군요. 힌트좀주세요.

#web
작성자 정보
답변 1
Modric
질문 등록: 10

해결했습니다.

2021.04.13. 18:28
질문에 대한 답을 알고 계신가요?
지식을 나누고 포인트를 획득해보세요.
답변하고 포인트 받기