randall commented on a change in pull request #7724:
URL: https://github.com/apache/trafficserver/pull/7724#discussion_r617775726



##########
File path: plugins/experimental/statichit/statichit.cc
##########
@@ -563,6 +563,12 @@ TSRemapInit(TSRemapInterface * /* api_info */, char * /* 
errbuf */, int /* errbu
 TSRemapStatus
 TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri)
 {
+  const TSHttpStatus txnstat = TSHttpTxnStatusGet(rh);
+  if (0 != static_cast<int>(txnstat) && txnstat != TS_HTTP_STATUS_OK) {

Review comment:
       Fixed. And added a bonus cleanup based on this feedback.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to