Re: [PATCH] connectivity: fix portal detection when using HTTP 204 based checks

2018-02-12 Thread Thomas Haller
On Mon, 2018-02-12 at 18:06 +0100, Aleksander Morgado wrote: > If we're going to use a 'no content' URL (HTTP 204) to check > connectivity, do not try to match prefix when the content is being > received. This issue was making the check not work properly, as the > content > returned by the captive

[PATCH] connectivity: fix portal detection when using HTTP 204 based checks

2018-02-12 Thread Aleksander Morgado
If we're going to use a 'no content' URL (HTTP 204) to check connectivity, do not try to match prefix when the content is being received. This issue was making the check not work properly, as the content returned by the captive portal was assumed as expected (given that g_str_has_prefix(str,"")