fixed #454: Fix: handle unhandled exceptions

This commit is contained in:
Guenter Obiltschnig 2014-05-31 12:42:26 +02:00
parent db0999b2d6
commit 83405d6812

View File

@ -28,6 +28,8 @@ namespace Net {
HTTPResponseStreamBuf::HTTPResponseStreamBuf(std::istream& istr):
_istr(istr)
{
// make sure exceptions from underlying string propagate
_istr.exceptions(std::ios::badbit);
}