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

New option: forceResponseCharset #185

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

Conversation

miguelsanchezvigo
Copy link

forceResponseCharset

This option allows user to force the charset of the response. This is useful when no charset is specified in response.

Example usage

rest.post('http://twaud.io/api/v1/users/danwrong.json', {
  forceResponseCharset: 'iso-8859-15'
}).on('complete', function(data) {
  console.log(data[0].message); // auto convert to object
});

@easternbloc
Copy link
Collaborator

Hi Miguel thanks for contributing.

I'm gonna need some tests before this can go any further.

Thanks.

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.

None yet

2 participants