[Groonga-commit] groonga/groonga [master] groonga-httpd: add missing content_type_len set

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 4 12:00:19 JST 2012


Kouhei Sutou	2012-09-04 12:00:19 +0900 (Tue, 04 Sep 2012)

  New Revision: 47c54cf2e2889b5b0b6246b6296a3b279886ec56
  https://github.com/groonga/groonga/commit/47c54cf2e2889b5b0b6246b6296a3b279886ec56

  Log:
    groonga-httpd: add missing content_type_len set

  Modified files:
    src/nginx-module/ngx_http_groonga_module.c

  Modified: src/nginx-module/ngx_http_groonga_module.c (+1 -0)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-09-03 18:49:05 +0900 (70fa007)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-09-04 12:00:19 +0900 (2a7788e)
@@ -297,6 +297,7 @@ ngx_http_groonga_handler_send_response(ngx_http_request_t *r,
   content_type = grn_ctx_get_mime_type(context);
   r->headers_out.content_type.len = strlen(content_type);
   r->headers_out.content_type.data = (u_char *)content_type;
+  r->headers_out.content_type_len = r->headers_out.content_type.len;
 
   /* allocate buffers for a response body */
   head_buf = ngx_http_groonga_grn_obj_to_ngx_buf(r->pool, &(data->head));
-------------- next part --------------
HTML����������������������������...
다운로드 



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