Commit 0468c82
fix: detect https scheme from transport param in Connection::getClient()
The ES9 PHP SDK client in getClient() was only checking the 'ssl' param
to determine the HTTP scheme. However, ECS environments configure clusters
with 'transport: https' (without 'ssl: true'), causing HTTP requests to
be sent to HTTPS endpoints (nginx returns 400).
Now also checks strtolower(getTransport()) === 'https' so that clusters
with transport: https get the correct https:// scheme in the SDK client URL.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 85d3df8 commit 0468c82
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
0 commit comments