mirror of https://github.com/davisking/dlib.git
Changed example to avoid tying a stream to itself since some iostream libraries
have a bug that causes them to crash when you do this.
This commit is contained in:
parent
f4f395975e
commit
3eae0bcb00
|
@ -41,7 +41,7 @@ int main()
|
|||
iostream stream(&buf);
|
||||
// This command causes the iostream to flush its output buffers
|
||||
// whenever someone makes a read request.
|
||||
stream.tie(&stream);
|
||||
buf.flush_output_on_read();
|
||||
|
||||
// Now we make the HTTP GET request for the main Google page.
|
||||
stream << "GET / HTTP/1.0\r\n\r\n";
|
||||
|
|
Loading…
Reference in New Issue