Join GitHub today
make it possible to override data input content type from command-line or Ant task without breaking tests and violating the specifications #287
Followup to #112.
Use-cases are as mentioned in the superseded PR. It allows the user to override the data input content type from the command-line or the Ant task explicitly. One usecase is to force the content being treated as text or force the content to being encoded with base64, if you simply manually know better than the detection or if the webserver sends a wrong content type which could pretty well happen out there.
This is also how it is documented already since 6 years but actually not working. This is because in my PR #99 I already added this functionality including docu changes, but my implementation broke some test as the changes violated the spec. When accepting that PR, you left out these changes but kept the documentation changes. The original commit with the wrong implementation was f5bc23d. I then created #112 with an alternative implementation that worked the same but did not break any test or violated the spec. So currently the code actually does not work like documented and these changes would bring those in line again.