groovy-wslite icon indicating copy to clipboard operation
groovy-wslite copied to clipboard

Issue100 patch

Open yeoupooh opened this issue 9 years ago • 1 comments

Possible fix for #100.

yeoupooh avatar Jul 08 '15 00:07 yeoupooh

I ran into this as well but this is almost already built in, only changed needed(?) would be to make it settable in the HTTP class.

package wslite.http
class HTTP {
    static final String DEFAULT_CHARSET = 'ISO-8859-1' // http://tools.ietf.org/html/rfc2616#section-3.7.1

Anyway, a workround is to do something like: HTTP.metaClass.'static'.getDEFAULT_CHARSET = { -> 'UTF-8' }

A more complete workaround example would be: Gist

magnuspalmer avatar Jul 01 '16 07:07 magnuspalmer