Skip to content

Commit

Permalink
Fix content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum authored Mar 27, 2023
1 parent bd2cf62 commit d2bb632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anisette_server/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ void main(string[] args) {
writefln!"[>>] 200 OK %s"(response);

res.setStatus(200);
res.addHeader("Content-Type", "application/json");
res.writeBodyString(response.toString(JSONOptions.doNotEscapeSlashes));
res.writeBodyString(response.toString(JSONOptions.doNotEscapeSlashes), "application/json");
} catch(Throwable t) {
res.setStatus(500);
res.writeBodyString(t.toString());
Expand Down

0 comments on commit d2bb632

Please sign in to comment.