@@ -49,13 +49,14 @@ bool is_content_type_one_of(const utility::string_t *first, const utility::strin
49
49
50
50
// Remove once VS 2013 is no longer supported.
51
51
#if defined(_WIN32) && _MSC_VER < 1900
52
+ // Not referring to mime_types to avoid static initialization order fiasco.
52
53
static const utility::string_t textual_types [] = {
53
- mime_types::message_http ,
54
- mime_types::application_json ,
55
- mime_types::application_xml ,
56
- mime_types::application_atom_xml ,
57
- mime_types::application_http ,
58
- mime_types::application_x_www_form_urlencoded
54
+ U ( " message/http " ) ,
55
+ U ( " application/json " ) ,
56
+ U ( " application/xml " ) ,
57
+ U ( " application/atom+xml " ) ,
58
+ U ( " application/http " ) ,
59
+ U ( " application/x-www-form-urlencoded " )
59
60
};
60
61
#endif
61
62
bool is_content_type_textual (const utility::string_t &content_type)
@@ -80,15 +81,16 @@ bool is_content_type_textual(const utility::string_t &content_type)
80
81
81
82
// Remove once VS 2013 is no longer supported.
82
83
#if defined(_WIN32) && _MSC_VER < 1900
84
+ // Not referring to mime_types to avoid static initialization order fiasco.
83
85
static const utility::string_t json_types [] = {
84
- mime_types::application_json ,
85
- mime_types::application_xjson ,
86
- mime_types::text_json ,
87
- mime_types::text_xjson ,
88
- mime_types::text_javascript ,
89
- mime_types::text_xjavascript ,
90
- mime_types::application_javascript ,
91
- mime_types::application_xjavascript
86
+ U ( " application/json " ) ,
87
+ U ( " application/x-json " ) ,
88
+ U ( " text/json " ) ,
89
+ U ( " text/x-json " ) ,
90
+ U ( " text/javascript " ) ,
91
+ U ( " text/x-javascript " ) ,
92
+ U ( " application/javascript " ) ,
93
+ U ( " application/x-javascript " )
92
94
};
93
95
#endif
94
96
bool is_content_type_json (const utility::string_t &content_type)
0 commit comments