[Groonga-commit] groonga/groonga [master] Remove support for HEAD

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 4日 (月) 14:51:06 JST


Ryo Onodera	2012-06-04 14:51:06 +0900 (Mon, 04 Jun 2012)

  New Revision: 22295291392bd8e18ebc70912199b7a2f184bc3e

  Log:
    Remove support for HEAD

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

  Modified: src/nginx-module/ngx_http_groonga_module.c (+0 -8)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-06-04 14:39:38 +0900 (f4a55f3)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-06-04 14:51:06 +0900 (3250631)
@@ -113,14 +113,6 @@ ngx_http_groonga_handler(ngx_http_request_t *r)
   r->headers_out.content_type.len = sizeof("text/html") - 1;
   r->headers_out.content_type.data = (u_char *) "text/html";
 
-  /* send the header only, if the request type is http 'HEAD' */
-  if (r->method == NGX_HTTP_HEAD) {
-    r->headers_out.status = NGX_HTTP_OK;
-    r->headers_out.content_length_n = sizeof(ngx_groonga_string) - 1;
-
-    return ngx_http_send_header(r);
-  }
-
   /* allocate a buffer for your response body */
   b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
   if (b == NULL) {




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