Skip to content

Commit

Permalink
[compress] Make warning if compress plugin has cache and range-reques…
Browse files Browse the repository at this point in the history
…t config (#11986)
  • Loading branch information
masaori335 authored Jan 27, 2025
1 parent 416f6ed commit d543c8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/compress/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ Configuration::Parse(const char *path)
// Update the defaults for the last host configuration too, if needed.
current_host_configuration->update_defaults();

// Check combination of configs
if (!current_host_configuration->cache() && current_host_configuration->range_request()) {
warning("Combination of 'cache false' and 'range-request true' might deliver corrupted content");
}

if (state != kParseStart) {
warning("the parser state indicates that data was expected when it reached the end of the file (%d)", state);
}
Expand Down

0 comments on commit d543c8a

Please sign in to comment.