OSDN Git Service

* Fixed Bug.
authorAtsushi Konno <konn@users.sourceforge.jp>
Wed, 1 Apr 2009 13:19:40 +0000 (22:19 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Wed, 1 Apr 2009 13:19:40 +0000 (22:19 +0900)
    - set 0 to Content-Length if it has Location header.

src/mod_chxj.c

index 4d4fd86..99c3566 100644 (file)
@@ -1224,6 +1224,7 @@ chxj_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
               r->status = HTTP_MOVED_TEMPORARILY;
               ctx->buffer = apr_pstrdup(pool, "");
               ctx->len    = 0;
+              ap_set_content_length(r, (apr_off_t)ctx->len);
             }
           }
           chxj_cookie_unlock(r,lock);