Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b6949332 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

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
Change-Id: I5f2cdd02376785b152e5b9a6e798d797894ea45b
parent c416cfb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment