null+****@clear*****
null+****@clear*****
2011年 12月 14日 (水) 16:29:18 JST
Yoji SHIDARA 2011-12-14 07:29:18 +0000 (Wed, 14 Dec 2011)
New Revision: a0cbde051a0aba5b3b3af4dc760da728e5de2877
Merged 6da4415: Merge branch 'msgpack'
Log:
add msgpack mime type
Modified files:
lib/ctx.c
Modified: lib/ctx.c (+8 -0)
===================================================================
--- lib/ctx.c 2011-12-14 06:59:31 +0000 (1bf9db2)
+++ lib/ctx.c 2011-12-14 07:29:18 +0000 (65472b1)
@@ -1089,6 +1089,14 @@ get_content_mime_type(grn_ctx *ctx, const char *p, const char *pe)
ctx->impl->mime_type = "image/jpeg";
}
break;
+#if HAVE_MESSAGE_PACK
+ case 'm' :
+ if (p + 7 == pe && !memcmp(p, "msgpack", 7)) {
+ ctx->impl->output_type = GRN_CONTENT_MSGPACK;
+ ctx->impl->mime_type = "application/x-msgpack";
+ }
+ break;
+#endif
case 'p' :
if (p + 3 == pe && !memcmp(p, "png", 3)) {
ctx->impl->output_type = GRN_CONTENT_NONE;