From 9100fcb4095cf8858d4cd2c613bff69ceb4f71ec Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 26 Sep 2018 09:39:09 +0100 Subject: improve nsurl query handling. Alter the handling of query values within nsurl to be like fragments. This ensures callers never have to care about the query punctuation, e.g. the question mark This also means the strings generated will no longer have trailing question marks which now conforms to behaviour in whatwg url spec on url serializing in section 4.5 --- utils/nsurl/private.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'utils/nsurl/private.h') diff --git a/utils/nsurl/private.h b/utils/nsurl/private.h index 4366ff68c..06f143f4d 100644 --- a/utils/nsurl/private.h +++ b/utils/nsurl/private.h @@ -105,9 +105,10 @@ enum nsurl_string_flags { NSURL_F_HOST | NSURL_F_PORT), NSURL_F_PATH = (1 << 8), - NSURL_F_QUERY = (1 << 9), - NSURL_F_FRAGMENT_PUNCTUATION = (1 << 10), - NSURL_F_FRAGMENT = (1 << 11) + NSURL_F_QUERY_PUNCTUATION = (1 << 9), + NSURL_F_QUERY = (1 << 10), + NSURL_F_FRAGMENT_PUNCTUATION = (1 << 11), + NSURL_F_FRAGMENT = (1 << 12) }; /** -- cgit v1.2.3