Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Response sent on Request if HttpException, status_code is false configured. #119

Closed
fklee opened this issue Jun 27, 2024 · 1 comment
Closed

Comments

@fklee
Copy link

fklee commented Jun 27, 2024

When a HttpException is catch in phpxmlrpc/phpxmlrpc/src/Request.php line 250, the $httpResponse parameter is not initialized correctly :
it is : array('raw_data' => $data, 'status_code', $e->statusCode())
and it should be : array('raw_data' => $data, 'status_code' => $e->statusCode())

'status_code' is the key and $e->statusCode() the value.

How to reproduce :
send an error to your client and debug httpResponse() it is something like this at the end :

  "headers" => []
  "cookies" => []
  "raw_data" => "..."
  "status_code" => null
  0 => "status_code"
  1 => "429"

And should be :
"status_code" => "429"

@gggeek
Copy link
Owner

gggeek commented Jun 27, 2024

Closed in rel 4.10.4, thanks

@gggeek gggeek closed this as completed Jun 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants