Skip to content

Conversation

@tkdgur0906
Copy link
Member

반갑습니다 잉크!
HttpRequest와 HttpResponse 정도만 분리해보았습니다!

잘 부탁드립니다!

학습테스트는 추가로 커밋 올릴게요!

Copy link

@yechop yechop left a 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));
Copy link

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'비밀번호가 틀릴 때' 외 아이디가 틀릴 때도 고려해주시면 좋겠네요!

@yechop yechop merged commit e622b01 into woowacourse:tkdgur0906 Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants