PeakyTests / Peaky

Tests as a Service
Other
5 stars 8 forks source link

Enable HTTPS to override in test urls #67

Closed jonsequitur closed 7 months ago

jonsequitur commented 7 months ago

Previously, Peaky tests assigned their URIs using the URI scheme of the incoming requests, so that the same configuration would be valid whether the hosting service was exposed via HTTP or HTTPS. This doesn't work for reverse proxies since the outward-facing URI could be HTTPS but the hosted service receives a proxied HTTP request.

The current change allows for tests defined with https:// URIs to be advertised with https:// URIs even when the service sees incoming http:// requests.