Describe the bug
Hi, when a form is submitted and server return code 500 then Pjax tries to visit the form URL with GET again. This can result in 405 Method not allowed. See:

To reproduce
- Submit a form with method POST and URL with Pjax
- Return 500 from server
- See that Pjax visits the URL with GET method
Expected behavior
Response is displayed and no second request is made.
Environment
- Browser: Firefox ESR 91.12.0
- Pjax: 2.4.0
Anything else?
No response
Describe the bug
Hi, when a form is submitted and server return code 500 then Pjax tries to visit the form URL with GET again. This can result in 405 Method not allowed. See:
To reproduce
Expected behavior
Response is displayed and no second request is made.
Environment
Anything else?
No response