Commit 16af489
committed
AI Client: Include the HTTP method in the
`WP_AI_Client_HTTP_Client::sendRequestWithOptions()` omitted the HTTP method from its `NetworkException` message, while `sendRequest()` already included it. Both now use the same format, and a new test covers it.
Props sagarsdeshmukh, jorbin, gziolo.
Fixes #65421.
git-svn-id: https://develop.svn.wordpress.org/trunk@62753 602fd350-edb4-49c9-b593-d223f7449a82sendRequestWithOptions() network error message.1 parent 9e94fe6 commit 16af489
2 files changed
Lines changed: 29 additions & 2 deletions
File tree
- src/wp-includes/ai-client/adapters
- tests/phpunit/tests/ai-client
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
332 | 358 | | |
333 | 359 | | |
334 | 360 | | |
| |||
0 commit comments