Skip to content

Commit 1cdee92

Browse files
authored
specify charset for json content-type (#124)
1 parent 9434eaa commit 1cdee92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/response.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub const Response = struct {
253253
.ICO => "Content-Type: image/vnd.microsoft.icon\r\n",
254254
.JPG => "Content-Type: image/jpeg\r\n",
255255
.JS => "Content-Type: text/javascript; charset=UTF-8\r\n",
256-
.JSON => "Content-Type: application/json\r\n",
256+
.JSON => "Content-Type: application/json; charset=UTF-8\r\n",
257257
.OTF => "Content-Type: font/otf\r\n",
258258
.PDF => "Content-Type: application/pdf\r\n",
259259
.PNG => "Content-Type: image/png\r\n",

0 commit comments

Comments
 (0)