diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-06 07:37:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-06 07:37:13 +0000 |
commit | 009760bdb7ba08246b98f4befe856cbda2ce769a (patch) | |
tree | 2de368d02b81a85f361ef81f32bb5ea04b608fe0 | |
parent | 41debb52b9d719dbb6f3ee7963de8913eff0c13d (diff) | |
download | clogger-009760bdb7ba08246b98f4befe856cbda2ce769a.tar.gz |
-rw-r--r-- | ext/clogger_ext/clogger.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c index cc08fac..ad5bbb9 100644 --- a/ext/clogger_ext/clogger.c +++ b/ext/clogger_ext/clogger.c @@ -824,6 +824,11 @@ static VALUE to_path(VALUE self) else rv = stat(cpath, &sb); + /* + * calling this method implies the web server will bypass + * the each method where body_bytes_sent is calculated, + * so we stat and set that value here. + */ c->body_bytes_sent = rv == 0 ? sb.st_size : 0; return path; } |