Critical assertion when looping through MessageHeaders
In libsoup-3.0
master, when I try to simply loop through received message header using the following code in vala
I get an assertion error.
Soup.MessageHeaders headers = message.get_response_headers ();
headers.foreach ((name, value) => {
print ("Name: %s\tValue: %s\n", name, value);
});
The following assertion is triggered
GLib-CRITICAL **: 14:38:51.987: g_atomic_ref_count_dec: assertion 'g_atomic_int_get (arc) > 0' failed