diff --git a/statusip.cpp b/statusip.cpp index 0385d9b..804fce9 100644 --- a/statusip.cpp +++ b/statusip.cpp @@ -135,8 +135,7 @@ int main(int argc, char *argv[]) ipv6 = body.substr(0, body.find_first_of("\r\n")); } - RestClient::HeaderFields headers{{"Host", get_host(url)}}; - conn.SetHeaders(headers); + conn.SetHeaders({{"Host", get_host(url)}}); response = conn.get(get_ipv4(url)); if (response.code == 200) {