[Groonga-commit] groonga/groonga [master] Ensure reset the default MIME-type

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Aug 12 13:35:43 JST 2012


Kouhei Sutou	2012-08-12 13:35:43 +0900 (Sun, 12 Aug 2012)

  New Revision: 16f1fa32f6147144e463baa13304b9c2ffb2218b
  https://github.com/groonga/groonga/commit/16f1fa32f6147144e463baa13304b9c2ffb2218b

  Log:
    Ensure reset the default MIME-type

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+3 -0)
===================================================================
--- lib/ctx.c    2012-08-12 12:14:32 +0900 (f7ec159)
+++ lib/ctx.c    2012-08-12 13:35:43 +0900 (06f3a4d)
@@ -1081,6 +1081,9 @@ grn_get_ctype(grn_obj *var)
 static void
 get_content_mime_type(grn_ctx *ctx, const char *p, const char *pe)
 {
+  ctx->impl->output_type = GRN_CONTENT_NONE;
+  ctx->impl->mime_type = "application/octet-stream";
+
   if (p + 2 <= pe) {
     switch (*p) {
     case 'c' :
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index