Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions plugins/experimental/slice/slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ read_request(TSHttpTxn txnp, Config *const config)
if (TS_HTTP_METHOD_GET == header.method()) {
static int const SLICER_MIME_LEN_INFO = strlen(SLICER_MIME_FIELD_INFO);
if (!header.hasKey(SLICER_MIME_FIELD_INFO, SLICER_MIME_LEN_INFO)) {
// check if any previous plugin has monkeyed with the transaction status
TSHttpStatus const txnstat = TSHttpTxnStatusGet(txnp);
if (0 != (int)txnstat) {
DEBUG_LOG("slice: txn status change detected (%d), skipping plugin\n", (int)txnstat);
return false;
}

// turn off any and all transaction caching (shouldn't matter)
TSHttpTxnServerRespNoStoreSet(txnp, 1);
TSHttpTxnRespCacheableSet(txnp, 0);
Expand Down