优化
This commit is contained in:
@@ -323,10 +323,10 @@ class AnalyzeUrl(
|
|||||||
checkEncoded: Boolean,
|
checkEncoded: Boolean,
|
||||||
charset: Charset?
|
charset: Charset?
|
||||||
) {
|
) {
|
||||||
val needEncode = checkEncoded &&
|
if (checkEncoded &&
|
||||||
((isQuery && !NetworkUtils.encodedQuery(value)) ||
|
!((isQuery && !NetworkUtils.encodedQuery(value)) ||
|
||||||
(!isQuery && !NetworkUtils.encodedForm(value)))
|
(!isQuery && !NetworkUtils.encodedForm(value)))
|
||||||
if (!needEncode) {
|
) {
|
||||||
append(value)
|
append(value)
|
||||||
} else if (charset == null) {
|
} else if (charset == null) {
|
||||||
append(EncoderUtils.escape(value))
|
append(EncoderUtils.escape(value))
|
||||||
|
|||||||
Reference in New Issue
Block a user