Navigation Menu

Skip to content

Commit

Permalink
Ensure reset the default MIME-type
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 12, 2012
1 parent d05dac9 commit 16f1fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ctx.c
Expand Up @@ -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' :
Expand Down

0 comments on commit 16f1fa3

Please sign in to comment.