fix bugs for serve_dir and logging
	modified:   parse.c
	modified:   requests.c
	modified:   response.c