You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uri::build(UriFlags::NONE,"gemini",None,Some("tlgs.one"),
-1,"search",// < requires slash at begin (e.g. /search)Some(&Uri::escape_string(query,None,false)),None,)
The above code is not complete (what's query?) and does not panic by itself either when fixing that. Please provide complete testcases in the future.
I assume the reason why it panics for you is that you try to use the Display impl of glib::Uri? That indeed panics and I think this can be considered a bug in GLib. Please report it over there: https://gitlab.gnome.org/GNOME/glib/-/issues/new
g_uri_to_string() claims to never return NULL and g_uri_build() neither, and this constraint for the path is not documented anywhere. Unclear what the correct way forward is, but something needs to be fixed and if it's the documentation.
Please add a comment here with the link to the issue you created for future reference, thanks!
Not sure if this is bug,
Only if the begining slash not provided for
path
The text was updated successfully, but these errors were encountered: