added comment
This commit is contained in:
parent
e4f555a0ca
commit
8c413fbd23
1 changed files with 1 additions and 0 deletions
1
main.cpp
1
main.cpp
|
|
@ -107,6 +107,7 @@ int main() {
|
|||
|
||||
ifs.seekg(0, ios::beg);
|
||||
|
||||
//The file-content is copied to the response-stream. Should not be used for very large files.
|
||||
response << "HTTP/1.1 200 OK\r\nContent-Length: " << length << "\r\n\r\n" << ifs.rdbuf();
|
||||
|
||||
ifs.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue