Closed yayitswei closed 10 years ago
same thing happens here. wonder whether this is fixed in 0.3.2?
the request that broke mine:
POST
{"asin": "B003S1UNZA", "marketplace": 1}
turning off guess-charset in format-params/get-or-guess-charset also works; basically ICU4J seems not working properly in guessing some of the encodings
Yes, ICU4J seems sometimes to be rather a random (seems to me it's mostly happening on very short body). I have added in 4c98a32cc3ac5d028a913d9cc69c93cb15592b1d a sanity check to guess-encoding
, which should not be able to return unknown encoding anymore. Please let me know if this works for you, and I'll cut a new release quickly.
Hi Nils, it worked for my case. Seems like a safe release to me. Thanks!
Thanks for the fix. Could you upload it to Clojars when you get a chance?
Done!
This request breaks JSON params decoding for me, using
[ring-middleware-format "0.3.1"]
:Throwing this error:
My workaround was to change
ring.middleware.format-params/wrap-format-params
to use slurp directly, but I'm not sure if that works in the general case.