Make sure port's just 80, before removing in http case.

svn path=/trunk/netsurf/; revision=13106
This commit is contained in:
Michael Drake 2011-10-31 22:13:38 +00:00
parent ea761e16e6
commit d64e09aef7

View File

@ -857,6 +857,8 @@ static nserror nsurl__create_from_section(const char const *url_s,
strncmp(lwc_string_data(
url->scheme), "http",
SLEN("http")) == 0 &&
length -
(colon - pegs->at + 1) == 2 &&
*sec_start == '8' &&
*(sec_start + 1) == '0') {
/* Scheme is http, and port is default