diff --git a/http_examples.cpp b/http_examples.cpp index 1e0fa3d..1738a29 100644 --- a/http_examples.cpp +++ b/http_examples.cpp @@ -94,7 +94,7 @@ int main() { path+="/index.html"; if(boost::filesystem::exists(path) && boost::filesystem::is_regular_file(path)) { ifstream ifs; - ifs.open(path.string(), ifstream::in); + ifs.open(path.string(), ifstream::in | ios::binary); if(ifs) { ifs.seekg(0, ios::end); diff --git a/https_examples.cpp b/https_examples.cpp index 6ce5dd0..29e84f6 100644 --- a/https_examples.cpp +++ b/https_examples.cpp @@ -94,7 +94,7 @@ int main() { path+="/index.html"; if(boost::filesystem::exists(path) && boost::filesystem::is_regular_file(path)) { ifstream ifs; - ifs.open(path.string(), ifstream::in); + ifs.open(path.string(), ifstream::in | ios::binary); if(ifs) { ifs.seekg(0, ios::end);