Add baseurl to uri if endpoint is string_view.

This commit is contained in:
tastytea 2020-01-09 13:12:50 +01:00
parent ec41063488
commit bf82525c5e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ answer_type Connection::get(const endpoint_variant &endpoint,
return string(_baseuri)
+= API{std::get<API::endpoint_type>(endpoint)}.to_string_view();
}
return string(std::get<string_view>(endpoint));
return string(_baseuri) += std::get<string_view>(endpoint);
}()};
return make_request(http_method::GET, uri, parameters);