pedestal

2020-08-25T20:30:17.005300Z

We use pedestal with jetty, and have a legacy app which sends a utf-8 string as a header. Jetty (rightfully) expects iso-8859-1, so we end up with a malformed string. Would it be possible to get the raw header, so we could parse it as utf-8 directly?

2020-08-25T20:50:58.005400Z

(String. (.getBytes my-str StandardCharsets/ISO_8859_1) StandardCharsets/UTF_8)
Re-encoding seems to work; Nice!.

🦜 1