X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2FGraphQL%2FClient%2Fhttp.pm;h=795f2e7ee9e97c72ffc5065e5f09ae2d8c5b9dcf;hb=46eab3f23427ab1151a7b4187b365bf1e211ec12;hp=77a089f2e319b5f3627ac31c1a9ceac3407fede2;hpb=8768d6c14ee5e9fbbfa5b1b6db6aac5e5eb7165f;p=chaz%2Fgraphql-client diff --git a/lib/GraphQL/Client/http.pm b/lib/GraphQL/Client/http.pm index 77a089f..795f2e7 100644 --- a/lib/GraphQL/Client/http.pm +++ b/lib/GraphQL/Client/http.pm @@ -42,7 +42,7 @@ sub execute { my $encoded_data = $self->json->encode($data); $options->{content} = $encoded_data; $options->{headers}{'content-length'} = length $encoded_data; - $options->{headers}{'content-type'} = 'application/json'; + $options->{headers}{'content-type'} = 'application/json;charset=UTF-8'; } return $self->_handle_response($self->any_ua->request($method, $url, $options));