summaryrefslogtreecommitdiff
path: root/common/networkstackclient/src
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2020-05-20 10:33:03 +0000
committerRemi NGUYEN VAN <reminv@google.com>2020-06-01 01:49:06 +0000
commit6bed0e594128b129d8b4efc427dbed546e3e420f (patch)
tree0b43e51544129d5253079e324c75b9f38c0106ef /common/networkstackclient/src
parent1e2e741071140b5f911db91b2008bda8dbdb732e (diff)
Allow localhost HTTP URLs for the capport API
Allowing the capport API to be hosted on localhost makes it easy to write fast, stable tests for the feature. This was not possible because: - Pre-validation of the URL used Patterns.WEB_URL, which is over-restrictive and excludes domain names without TLD - NetworkMonitor needs the API to be hosted via HTTPS which is working as intended, however relaxing this requirement only for localhost (for testing) seems reasonable. Bug: 156062304 Test: atest CaptivePortalApiTest in associated change Original-Change: https://android-review.googlesource.com/1309235 Merged-In: I5f2cdd02376785b152e5b9a6e798d797894ea45b Change-Id: I5f2cdd02376785b152e5b9a6e798d797894ea45b
Diffstat (limited to 'common/networkstackclient/src')
0 files changed, 0 insertions, 0 deletions