simplify the url parsing
ClosedPublic

Authored by sitter on Oct 11 2019, 12:58 PM.

Details

Summary

all urls need to have their ports stripped and text set, so de-duplicate
the shared code out of the conditional branches to prevent bugs from
making changes in one branch but not the other

Test Plan

saving and changing proxy settings continues to work

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Oct 11 2019, 12:58 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 11 2019, 12:58 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
sitter requested review of this revision.Oct 11 2019, 12:58 PM
apol accepted this revision.Oct 11 2019, 11:30 PM
This revision is now accepted and ready to land.Oct 11 2019, 11:30 PM
This revision was automatically updated to reflect the committed changes.