Skip to content

Commit 7af29d5

Browse files
committed
Replaces tabs with spaces in HTTP client example.
1 parent df6d691 commit 7af29d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/network/doc/examples/http/http_client.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ Without further ado, the code to do this is as follows:
2323
int main(int argc, char *argv[]) {
2424
using namespace boost::network;
2525
26-
if (argc != 2) {
27-
std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
28-
return 1;
26+
if (argc != 2) {
27+
std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
28+
return 1;
2929
}
3030

3131
http::client client;
3232
http::client::request request(argv[1]);
33-
request << header("Connection", "close");
34-
http::client::response response = client.get(request);
35-
std::cout << body(response) << std::endl;
33+
request << header("Connection", "close");
34+
http::client::response response = client.get(request);
35+
std::cout << body(response) << std::endl;
3636

37-
return 0;
37+
return 0;
3838
}
3939

4040
Running the example

0 commit comments

Comments
 (0)