-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert sendfile param to string from bool. #365
Conversation
The docs seem to imply that sendfile is on by default. Wouldn't this be changing the module default to enforce that it is off by default. http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile |
I was assuming that the module default was |
Sweet, my only other concern then is |
Updated PR and added rspec tests. |
@@ -288,5 +288,30 @@ | |||
it { should contain_class('apache::mod::mime') } | |||
end | |||
end | |||
|
|||
describe "sendfile" do | |||
context "foo" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity this should probably be "with invalid value"
Updated PR to fix rspec context name. |
Just checked the README, and it says sendfile defaults to false, can you fix that too? |
Currently, one would assume that since the default is false, setting `sendfile => true` would cause the option to be enabled in httpd.conf, but instead it writes `sendfile true` which is incorrect. This makes the usage consistant with commit a82af55. Includes rspec tests and input validation.
@blkperl Good catch. I always forget the README. |
Convert sendfile param to string from bool.
Thanks for the contribution! |
Currently, one would assume that since the default is false, setting
sendfile => true
would cause the option to be enabled in httpd.conf, but instead it writesEnableSendfile true
which is incorrect. This makes the usage consistant with commit a82af55.