-
Notifications
You must be signed in to change notification settings - Fork 603
Luis M #313
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
base: master
Are you sure you want to change the base?
Luis M #313
Conversation
"Content-Length: %d\n" | ||
"Content-Type: %s\n\n" | ||
"%s\n", | ||
header, formatted_time, content_length, content_type, body); |
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.
This looks good! You had all of this worked out yesterday, you just had to do the handlehttp.
srand(getpid() + time(NULL)); | ||
char res_body[8]; | ||
|
||
sprintf(res_body, "%d\n", (rand() % 20) + 1); |
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.
Great job with this and the call to srand()
.
return; | ||
} | ||
|
||
sscanf(request, "%s %s %s", request_type, resource, request_protocol); |
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.
This looks spot on!
No description provided.