The 3 assertions that get thrown in debug mode when trying to upload a file are lines 967, 961, and 913 in http_client.cpp souce file via PUT. All the assertions report "released == false". However, the file still seems to upload successfully.
Code to reproduce the error:
```
//Open the file for upload
concurrency::streams::basic_istream<unsigned char> file_stream = concurrency::streams::file_stream<unsigned char>::open_istream(localFilePath).get();
if(file_stream.is_valid() == true)
{
//Proxy
web::http::client::web_proxy web_proxy(web::http::client::web_proxy::web_proxy_mode::use_auto_discovery);
web::http::client::http_client_config client_config;
client_config.set_proxy(web_proxy);
//Path
web::http::uri_builder request_uri;
request_uri.append_path(remoteFilePath, true);
//Request
web::http::http_request request(web::http::methods::PUT);
request.set_request_uri(request_uri.to_string());
request.set_body(file_stream);
//Get the Response
web::http::client::http_client client(L"https://mydomain.com", client_config);
web::http::http_response response = client.request(request).get(); //Throws Assert!
file_stream.close();
}
```
Comments: We have identified the cause of these asserts. Our next release will have this fix.
Code to reproduce the error:
```
//Open the file for upload
concurrency::streams::basic_istream<unsigned char> file_stream = concurrency::streams::file_stream<unsigned char>::open_istream(localFilePath).get();
if(file_stream.is_valid() == true)
{
//Proxy
web::http::client::web_proxy web_proxy(web::http::client::web_proxy::web_proxy_mode::use_auto_discovery);
web::http::client::http_client_config client_config;
client_config.set_proxy(web_proxy);
//Path
web::http::uri_builder request_uri;
request_uri.append_path(remoteFilePath, true);
//Request
web::http::http_request request(web::http::methods::PUT);
request.set_request_uri(request_uri.to_string());
request.set_body(file_stream);
//Get the Response
web::http::client::http_client client(L"https://mydomain.com", client_config);
web::http::http_response response = client.request(request).get(); //Throws Assert!
file_stream.close();
}
```
Comments: We have identified the cause of these asserts. Our next release will have this fix.