Skip to content

Incorrect transmission of response content type

Steps to reproduce

  • start the server
  • place a POST request at /bg (or /clear) with arbitrary valid payload, e.g. [{"type" : "directory","abs_path": "/A/B/","creation_time": 1604235509}]

Expected behavior Response with Content-Type: application/json; charset=UTF-8 in headers and "Action: add, Details: 2" as payload.

Observed behavior Response with Content-Type: text/plain; charset=UTF-8 in headers and

Content-type: application/json; charset=UTF-8 [sic!]

"Action: add, Details: 2"

as payload.