SoupServer: reject non-HTTP URIs and URIs with no host
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 10 Jan 2012 17:03:39 +0000 (17:03 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 3 Feb 2012 13:50:27 +0000 (13:50 +0000)
commit1d9df75e75e7df2656ff9a6567acc5f16d90e0cb
tree03acd9f73c54b4c6567745403b64e82cc1a1b28c
parent13cead1bafe6695ef8f7964c4bde9db1c7262027
SoupServer: reject non-HTTP URIs and URIs with no host

This prevents a critical warning and other misbehaviour in the
simple-httpd test, when using requests like "GET http: HTTP/1.0".

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637
Bug-NB: NB#294977
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Winship <danw@gnome.org>
libsoup/soup-message-server-io.c