Skip to content

message: fix critical when trying to create a message from invalid URI

Guillaume Desmottes requested to merge gdesmott/libsoup:invalid-uri into master

soup_message_new_from_uri() raises a critical if SOUP_URI_IS_VALID returns FALSE. This macro also checks if the URI host is not an empty string, which was not checked in the caller code.

Fix critical when running such GStreamer pipeline: gst-launch-1.0 souphttpsrc location=http:///not-there.ogg ! fakesink

Merge request reports