Skip to content

Browning (1.33)

Latest

Choose a tag to compare

@lewisgoddard lewisgoddard released this 12 Nov 11:31

Browning 1.33 treats any HTTP error from Mailgun or reCAPTCHA as a failure, and bounds how long a request can take.

Behaviour

  • Mailer::send() reports success => false whenever Mailgun answers 4xx or 5xx. A rejected key (401 or 403) gives "This website is unable to send email."; any other error gives "Unable to send email at this time." With debug: true the message carries the status and body. Previously a 400 or 401 with a JSON body was reported as success.
  • Recaptcha::verify() treats 4xx and 5xx the same way.
  • cURL requests have a 10 second connect timeout and a 30 second total timeout.

API

  • Response gains a statusCode property, and failed() is true for 4xx and 5xx.

Supporting

  • Seven new tests cover the status handling, and the test echo server answers /status/<code>. 31 tests on PHP 8.2 to 8.6.
  • No curl_close() call, which PHP 8.5 deprecates.

Full Changelog: 1.32...1.33