swsnu / swppfall2019

31 stars 23 forks source link

[HW3] Should we handle urls not ending in a slash? #179

Open davin111 opened 4 years ago

davin111 commented 4 years ago

실습 시간에 언급되었던대로, urlpatterns를 모두 '/'로 끝나게 하였습니다. 이 때, 예를 들어 ARC로 http://localhost:8000/api/signup('/'으로 끝나지 않은)에 POST 요청을 보내면 RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. ...과 같은 RuntimeError(500)이 나타납니다. 이러한 경우도 404 등으로 처리해주어야 하는 것인지 궁금합니다.

ktaebum commented 4 years ago

저희가 확인을 할 때는 다 /로 끝나게 할 것이라서 그 부분은 자유롭게 처리하셔도 됩니다

ktaebum commented 4 years ago

HW1, HW2 클레임을 통해 테스트 케이스의 일부를 확인하신 분들은 알겠지만 저희가 감점을 위한(?) test case는 넣지 않습니다 🙂