Skip to content

Commit 227066e

Browse files
committed
Add '; charset=utf-8' to 'Content-Type' header
1 parent e2524be commit 227066e

File tree

108 files changed

+335
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+335
-335
lines changed

tests/functional/001_records/001_list_posts.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GET /records/posts
33
===
44
200
5-
Content-Type: application/json
5+
Content-Type: application/json; charset=utf-8
66
Content-Length: 134
77

88
{"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]}

tests/functional/001_records/002_list_post_columns.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GET /records/posts?include=id,content
33
===
44
200
5-
Content-Type: application/json
5+
Content-Type: application/json; charset=utf-8
66
Content-Length: 78
77

88
{"records":[{"id":1,"content":"blog started"},{"id":2,"content":"It works!"}]}

tests/functional/001_records/003_read_post.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GET /records/posts/2
33
===
44
200
5-
Content-Type: application/json
5+
Content-Type: application/json; charset=utf-8
66
Content-Length: 58
77

88
{"id":2,"user_id":1,"category_id":2,"content":"It works!"}

tests/functional/001_records/004_read_posts.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GET /records/posts/1,2
33
===
44
200
5-
Content-Type: application/json
5+
Content-Type: application/json; charset=utf-8
66
Content-Length: 122
77

88
[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"It works!"}]

tests/functional/001_records/005_read_post_columns.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GET /records/posts/2?include=id,content
33
===
44
200
5-
Content-Type: application/json
5+
Content-Type: application/json; charset=utf-8
66
Content-Length: 30
77

88
{"id":2,"content":"It works!"}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
===
22
POST /records/posts
3-
Content-Type: application/json
3+
Content-Type: application/json; charset=utf-8
44

55
{"user_id":1,"category_id":1,"content":"test"}
66
===
77
200
8-
Content-Type: application/json
8+
Content-Type: application/json; charset=utf-8
99
Content-Length: 1
1010

1111
3

tests/functional/001_records/007_edit_post.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ PUT /records/posts/3
44
{"user_id":1,"category_id":1,"content":"test (edited)"}
55
===
66
200
7-
Content-Type: application/json
7+
Content-Type: application/json; charset=utf-8
88
Content-Length: 1
99

1010
1
1111
===
1212
GET /records/posts/3
1313
===
1414
200
15-
Content-Type: application/json
15+
Content-Type: application/json; charset=utf-8
1616
Content-Length: 62
1717

1818
{"id":3,"user_id":1,"category_id":1,"content":"test (edited)"}

tests/functional/001_records/008_edit_post_columns_missing_field.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ PUT /records/posts/3?include=id,content
44
{"content":"test (edited 2)"}
55
===
66
200
7-
Content-Type: application/json
7+
Content-Type: application/json; charset=utf-8
88
Content-Length: 1
99

1010
1
1111
===
1212
GET /records/posts/3
1313
===
1414
200
15-
Content-Type: application/json
15+
Content-Type: application/json; charset=utf-8
1616
Content-Length: 64
1717

1818
{"id":3,"user_id":1,"category_id":1,"content":"test (edited 2)"}

tests/functional/001_records/009_edit_post_columns_extra_field.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ PUT /records/posts/3?include=id,content
44
{"user_id":2,"content":"test (edited 3)"}
55
===
66
200
7-
Content-Type: application/json
7+
Content-Type: application/json; charset=utf-8
88
Content-Length: 1
99

1010
1
1111
===
1212
GET /records/posts/3
1313
===
1414
200
15-
Content-Type: application/json
15+
Content-Type: application/json; charset=utf-8
1616
Content-Length: 64
1717

1818
{"id":3,"user_id":1,"category_id":1,"content":"test (edited 3)"}

tests/functional/001_records/010_edit_post_with_utf8_content.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ PUT /records/posts/2
44
{"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}
55
===
66
200
7-
Content-Type: application/json
7+
Content-Type: application/json; charset=utf-8
88
Content-Length: 1
99

1010
1
1111
===
1212
GET /records/posts/2
1313
===
1414
200
15-
Content-Type: application/json
15+
Content-Type: application/json; charset=utf-8
1616
Content-Length: 192
1717

1818
{"id":2,"user_id":1,"category_id":2,"content":"🤗 Grüßgott, Вiтаю, dobrý deň, hyvää päivää, გამარჯობა, Γεια σας, góðan dag, здравствуйте"}

0 commit comments

Comments
 (0)