Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue100 patch #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

yeoupooh
Copy link

@yeoupooh yeoupooh commented Jul 8, 2015

Possible fix for #100.

- defaultCharset is used when charset is not specified in content type header.
@magnuspalmer
Copy link

magnuspalmer commented Jul 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants