Closed jimmykemp closed 4 years ago
The FormDataWriter class uses the System.lineSeparator(), assigned to the variable NEW_LINE, to allow for platform independence.
It would appear however, that the NEW_LINE chars required for separation of Fields is always "\r\n" and not ("\n").
When on a 'ux' platform this results in an exception ('Header section has more than 10240 bytes (maybe it is not properly terminated)')
There is a short post here which describes the issue, and this resolution. (https://stackoverflow.com/questions/54437636/header-section-has-more-than-10240-bytes-maybe-it-is-not-properly-terminated)
Please note: the unit test updates are simply to get a build running via Jitpack, and need to be reviewed.
The FormDataWriter class uses the System.lineSeparator(), assigned to the variable NEW_LINE, to allow for platform independence.
It would appear however, that the NEW_LINE chars required for separation of Fields is always "\r\n" and not ("\n").
When on a 'ux' platform this results in an exception ('Header section has more than 10240 bytes (maybe it is not properly terminated)')
There is a short post here which describes the issue, and this resolution. (https://stackoverflow.com/questions/54437636/header-section-has-more-than-10240-bytes-maybe-it-is-not-properly-terminated)
Please note: the unit test updates are simply to get a build running via Jitpack, and need to be reviewed.