Skip to content
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

getLocationBlock() #32

Open
Victra15 opened this issue Apr 9, 2023 · 2 comments
Open

getLocationBlock() #32

Victra15 opened this issue Apr 9, 2023 · 2 comments

Comments

@Victra15
Copy link
Contributor

Victra15 commented Apr 9, 2023

매개변수를 URL형태로 받아서 Location 객체 반환

@Jake1152
Copy link
Member

Jake1152 commented Apr 9, 2023

@Jake1152
Copy link
Member

bool getLocationConfig(const unsigned short &port, const std::string &find_path, LocationConfig& location_config)
이미 HTTPRequest getLocalPath()함수에서 host,port를 잘라서 convUriToPath() 호출되기 때문에 URI가 http:// 이거나 localhost:port가 앞에 붙어서 들어오는 경우는 없을 것으로 판단

AS IS

convUriToPath(URI, PORT, file_path)

TO BE

convLocalPathToExistPath(local_path, PORT, file_path)

  • local path내부적으로 자르는 부분 제거 예정

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

No branches or pull requests

2 participants