[Groonga-commit] groonga/groonga at 70dd9d9 [master] http: fix a bug that separator character is ignored

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 12 13:43:09 JST 2015


Kouhei Sutou	2015-03-12 13:43:09 +0900 (Thu, 12 Mar 2015)

  New Revision: 70dd9d9adc519edb11aae690a4035ce87baa6d22
  https://github.com/groonga/groonga/commit/70dd9d9adc519edb11aae690a4035ce87baa6d22

  Message:
    http: fix a bug that separator character is ignored

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2015-03-12 13:38:31 +0900 (6b855d2)
+++ src/groonga.c    2015-03-12 13:43:09 +0900 (8e466c7)
@@ -1247,7 +1247,7 @@ do_htreq_post(grn_ctx *ctx, grn_msg *msg)
         GRN_TEXT_PUT(ctx,
                      &chunk_buffer,
                      buffer_start,
-                     buffer_current - buffer_start);
+                     buffer_current + 1 - buffer_start);
         {
           int flags = 0;
           if (!(read_content_length == header.content_length &&
@@ -1259,7 +1259,7 @@ do_htreq_post(grn_ctx *ctx, grn_msg *msg)
                             GRN_TEXT_LEN(&chunk_buffer),
                             flags);
         }
-        buffer_start = buffer_current + 1;
+        buffer_start = buffer_current;
         GRN_BULK_REWIND(&chunk_buffer);
       }
       if (buffer_end > buffer_start) {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index