File tree 3 files changed +5
-5
lines changed
main/java/graphql/kickstart/servlet
test/groovy/graphql/kickstart/servlet
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
public interface HttpRequestHandler {
8
8
9
- String APPLICATION_JSON_UTF8 = "application/json" ;
10
- String APPLICATION_EVENT_STREAM_UTF8 = "text/event-stream" ;
9
+ String APPLICATION_JSON_UTF8 = "application/json;charset=UTF-8 " ;
10
+ String APPLICATION_EVENT_STREAM_UTF8 = "text/event-stream;charset=UTF-8 " ;
11
11
12
12
int STATUS_OK = 200 ;
13
13
int STATUS_BAD_REQUEST = 400 ;
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ class AbstractGraphQLHttpServletSpec extends Specification {
26
26
public static final int STATUS_OK = 200
27
27
public static final int STATUS_BAD_REQUEST = 400
28
28
public static final int STATUS_ERROR = 500
29
- public static final String CONTENT_TYPE_JSON_UTF8 = ' application/json'
30
- public static final String CONTENT_TYPE_SERVER_SENT_EVENTS = ' text/event-stream'
29
+ public static final String CONTENT_TYPE_JSON_UTF8 = ' application/json;charset=UTF-8 '
30
+ public static final String CONTENT_TYPE_SERVER_SENT_EVENTS = ' text/event-stream;charset=UTF-8 '
31
31
32
32
@Shared
33
33
ObjectMapper mapper = new ObjectMapper ()
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class CacheReaderTest extends Specification {
64
64
65
65
then :
66
66
result
67
- 1 * response. setContentType(" application/json" )
67
+ 1 * response. setContentType(" application/json;charset=UTF-8 " )
68
68
1 * response. setStatus(200 )
69
69
1 * response. setCharacterEncoding(" UTF-8" )
70
70
1 * response. setContentLength(3 )
You can’t perform that action at this time.
0 commit comments