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:
Davis King 2014-09-30 19:21:38 -04:00
parent f4f395975e
commit 3eae0bcb00
1 changed files with 1 additions and 1 deletions

View File

@ -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";