-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1 -2단계 - Tomcat 구현하기] 카피(김상혁) 미션 제출합니다 #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전체적으로 잘 해주셨습니다 👍
수정 필요한 부분은 다음단계 진행하면서 고쳐주세요
404나 500 같은 페이지도 띄워주시면 좋을것 같습니다.
Http11Processor 리팩토링 기대할게요!
String account = requestBody.split("&")[0].split("=")[1]; | ||
String email = requestBody.split("&")[1].split("=")[1]; | ||
String password = requestBody.split("&")[2].split("=")[1]; | ||
InMemoryUserRepository.save(new User(account, email, password)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User 생성 파라미터 순서가 틀려 회원가입이 정상적으로 작동하고 있지 않습니다.
httpResponse = HttpResponse.of(version, 200, "text/html", responseBody); | ||
httpResponse.addHeader("Location", "/index.html"); | ||
httpResponse.addHeader("Set-Cookie", "JSESSIONID=" + jSessionId); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'비밀번호가 틀릴 때' 외 아이디가 틀릴 때도 고려해주시면 좋겠네요!
반갑습니다 잉크!
HttpRequest와 HttpResponse 정도만 분리해보았습니다!
잘 부탁드립니다!
학습테스트는 추가로 커밋 올릴게요!