Commit 32441a97 authored by Guillaume Beraudo's avatar Guillaume Beraudo

Fix sending http GET queries with parameters.

parent e3fb5be1
......@@ -981,6 +981,7 @@ static const char *get_generic_uri_query_noescapes() {
noescapes_add_alfanums(noescapes);
/*mark*/
noescapes_add_list(noescapes, "-_.!~*'()");
noescapes_add_list(noescapes, "=&"); // otherwise how to pass parameters?
noescapes[BELLE_SIP_NO_ESCAPES_SIZE-1] = 1; // initialized
}
return noescapes;
......
......@@ -273,6 +273,7 @@ static void split_request_url(belle_http_request_t *req){
new_uri=belle_generic_uri_new();
belle_generic_uri_set_path(new_uri,path);
belle_generic_uri_set_query(new_uri, belle_generic_uri_get_query(uri));
if (belle_generic_uri_get_port(uri)>0)
host_value=belle_sip_strdup_printf("%s:%i",belle_generic_uri_get_host(uri),belle_generic_uri_get_port(uri));
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment