* test/serf_get.c
  Use the plain hostname for SNI in this sample application instead of
  the hostinfo that might include other information such as a portname.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1811214 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/serf_get.c b/test/serf_get.c
index ac136dd..7c9c49c 100644
--- a/test/serf_get.c
+++ b/test/serf_get.c
@@ -34,7 +34,7 @@
 /* #define CONNECTION_CLOSE_HDR */
 
 typedef struct app_baton_t {
-    const char *hostinfo;
+    const char *hostname;
     int using_ssl;
     int head_request;
     int negotiate_http2;
@@ -223,7 +223,7 @@
         serf_ssl_server_cert_chain_callback_set(conn_ctx->ssl_ctx, 
                                                 ignore_all_cert_errors, 
                                                 print_certs, NULL);
-        serf_ssl_set_hostname(conn_ctx->ssl_ctx, ctx->hostinfo);
+        serf_ssl_set_hostname(conn_ctx->ssl_ctx, ctx->hostname);
 
         *output_bkt = serf_bucket_ssl_encrypt_create(*output_bkt,
                                                      conn_ctx->ssl_ctx,
@@ -728,7 +728,7 @@
         app_ctx.head_request = 0;
     }
 
-    app_ctx.hostinfo = url.hostinfo;
+    app_ctx.hostname = url.hostname;
     app_ctx.pem_path = pem_path;
     app_ctx.pem_pwd = pem_pwd;