[Groonga-commit] groonga/groonga [master] Fixed wrong content-length without jsonp.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 6日 (木) 15:18:06 JST


Tasuku SUENAGA a.k.a. gunyarakun	2011-01-06 06:18:06 +0000 (Thu, 06 Jan 2011)

  New Revision: e556111a4976b1f8e4e64df75a170f8ed3317138

  Log:
    Fixed wrong content-length without jsonp.

  Modified files:
    src/suggest/groonga_suggest_httpd.c

  Modified: src/suggest/groonga_suggest_httpd.c (+1 -1)
===================================================================
--- src/suggest/groonga_suggest_httpd.c    2011-01-06 05:46:15 +0000 (caa7c5d)
+++ src/suggest/groonga_suggest_httpd.c    2011-01-06 06:18:06 +0000 (0dfadb3)
@@ -229,7 +229,7 @@ log_send(struct evbuffer *res_buf, thd_data *thd, struct evkeyvalq *get_args)
       content_length += suggest_result(res_buf, types, query, target_name, &(thd->cmd_buf), thd->ctx) + 3;
       evbuffer_add(res_buf, ");", 2);
     } else {
-      content_length = suggest_result(res_buf, types, query, target_name, &(thd->cmd_buf), thd->ctx) + 3;
+      content_length = suggest_result(res_buf, types, query, target_name, &(thd->cmd_buf), thd->ctx);
     }
     return content_length;
   }




Groonga-commit メーリングリストの案内
Back to archive index