Fix the ssl trusted check.
Thank you Steve Dee <mrdomino@gmail.com>!
This commit is contained in:
parent
9eedabe348
commit
a78aec6630
4
surf.c
4
surf.c
|
@ -601,8 +601,8 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
|
||||||
src = webkit_web_frame_get_data_source(frame);
|
src = webkit_web_frame_get_data_source(frame);
|
||||||
request = webkit_web_data_source_get_request(src);
|
request = webkit_web_data_source_get_request(src);
|
||||||
msg = webkit_network_request_get_message(request);
|
msg = webkit_network_request_get_message(request);
|
||||||
c->sslfailed = soup_message_get_flags(msg)
|
c->sslfailed = !(soup_message_get_flags(msg)
|
||||||
^ SOUP_MESSAGE_CERTIFICATE_TRUSTED;
|
& SOUP_MESSAGE_CERTIFICATE_TRUSTED);
|
||||||
}
|
}
|
||||||
setatom(c, AtomUri, uri);
|
setatom(c, AtomUri, uri);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user