Skip to content

Commit

Permalink
ofURLFileLoader: use always binary mode for saving files
Browse files Browse the repository at this point in the history
was problematic in windows
  • Loading branch information
arturoc committed Oct 10, 2011
1 parent fca449d commit d8a7625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/utils/ofURLFileLoader.cpp
Expand Up @@ -148,7 +148,7 @@ ofHttpResponse ofURLFileLoader::handleRequest(ofHttpRequest request) {
if(!request.saveTo){
return ofHttpResponse(request,rs,res.getStatus(),res.getReason());
}else{
ofFile saveTo(request.name,ofFile::WriteOnly);
ofFile saveTo(request.name,ofFile::WriteOnly,true);
char aux_buffer[1024];
rs.read(aux_buffer, 1024);
std::streamsize n = rs.gcount();
Expand Down

0 comments on commit d8a7625

Please sign in to comment.