HtmlUnitRequestBuilder ignores form encoding type [SPR-14916] #19483
Comments
Rossen Stoyanchev commented This should be fixed now. Thanks for the detailed report and sample. |
Mark Hobson commented I've just tried the latest 4.3.5 snapshot and it's working great now, thanks! |
Rossen Stoyanchev commented Thanks for confirming. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mark Hobson opened SPR-14916 and commented
When using MockMvc with HtmlUnit submitting a form via WebDriver does not send the correct content type header.
The problem is that
HtmlUnitRequestBuilder
does not use HtmlUnit'sWebRequest.encodingType
when determining the resultantMockHttpServletRequest
's content type.See the referenced GitHub repo for an example. This Spring test fails using HtmlUnit but passes when ChromeDriver is configured as the WebDriver bean.
Affects: 4.3.4
Reference URL: https://github.com/markhobson/spring-htmlunit-bug
Referenced from: commits 38b6746, 872d6ef
The text was updated successfully, but these errors were encountered: