-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adds charset=utf8 to a json response Content-Type #1089
Conversation
Is there any downside/breaking issues with making this the default? Feels odd not making it more configurable/overridable. |
I'm all for making it configurable. Should i put it in a static property on the |
The only breaking change I can see is if there is someone that explicitly string matches against the content type in something like an after-hook |
@albertjan @grumpydev I know you guys talked a bit more about the "making it more configurable/overridable" part. Did you reach a conclusions? |
It could be a part of https://github.com/NancyFx/Nancy/blob/master/src/Nancy/Json/JsonSettings.cs public static string DefaultCharset { get; set; }
|
@thecodejunkie, @grumpydev you concur with @prabirshrestha sugestion? |
Will do some reformatting tomorrow at work "Xamarin Studio" doesn't play nice. |
Some weird formatting and spacing issues in JsonResponse.cs (brackets look out of line, spaces before opening method parens) |
@albertjan This is breaking on mono, see the Travis CI log please. we'd like to get this into 0.18 so the sooner the better |
@thecodejunkie no there isn't :) @grumpydev told me this test is a rogue test that will sometimes break on mono builds. |
Adds charset=utf8 to a json response Content-Type
No description provided.