diff options
author | jpadkins <jacobpadkins@gmail.com> | 2017-03-31 00:33:28 +0300 |
---|---|---|
committer | jpadkins <jacobpadkins@gmail.com> | 2017-03-31 00:33:28 +0300 |
commit | 8a70541a696f5c41f6f21758879e43ddefb13290 (patch) | |
tree | dbf27643eb9ced2f85ed7e7e67a2e73fbc57b393 /check/magma/servers/http | |
parent | a7c5aea2f767a3cf78a5213230e60e705cc1886d (diff) |
Refactored client_print's to client_writes in network tests.
Diffstat (limited to 'check/magma/servers/http')
-rw-r--r-- | check/magma/servers/http/http_check_network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check/magma/servers/http/http_check_network.c b/check/magma/servers/http/http_check_network.c index 7499f42e..b4928eb0 100644 --- a/check/magma/servers/http/http_check_network.c +++ b/check/magma/servers/http/http_check_network.c @@ -119,7 +119,7 @@ bool_t check_http_network_basic_sthread(stringer_t *errmsg, uint32_t port, bool_ return false; } // Test submitting a GET request. - else if (client_print(client, "GET / HTTP/1.1\r\nHost: localhost\r\n\r\n") != 35 || client_status(client) != 1 || + else if (client_write(client, PLACER("GET / HTTP/1.1\r\nHost: localhost\r\n\r\n", 35)) != 35 || client_status(client) != 1 || !(content_length = check_http_content_length_get(client, errmsg))) { if (st_empty(errmsg)) st_sprint(errmsg, "Failed to return a valid GET response."); @@ -161,7 +161,7 @@ bool_t check_http_network_options_sthread(stringer_t *errmsg, uint32_t port, boo return false; } // Test OPTIONS - else if (client_print(client, "OPTIONS /portal/camel HTTP/1.1\r\n\r\n") != 34 || client_status(client) != 1 || + else if (client_write(client, PLACER("OPTIONS /portal/camel HTTP/1.1\r\n\r\n", 34)) != 34 || client_status(client) != 1 || !check_http_options(client, options, errmsg)) { client_close(client); |