bigcook12345 commented on a change in pull request #7476:
URL: https://github.com/apache/trafficserver/pull/7476#discussion_r578966703
##########
File path: proxy/http/HttpTransact.cc
##########
@@ -5005,31 +5002,20 @@
HttpTransact::merge_response_header_with_cached_header(HTTPHdr *cached_header, H
// the remaining fields one by one from the
// response header
//
- if (field->m_next_dup) {
+ if (field.m_next_dup) {
if (dups_seen == false) {
- MIMEField *dfield;
// use a second iterator to delete the
// remaining response headers in the cached response,
// so that they will be added in the next iterations.
- MIMEFieldIter fiter2 = fiter;
- const char *dname = name;
- int dlen = name_len;
-
- while (dname) {
- cached_header->field_delete(dname, dlen);
- dfield = response_header->iter_get_next(&fiter2);
- if (dfield) {
- dname = dfield->name_get(&dlen);
- } else {
- dname = nullptr;
- }
+ for (auto spot2 = spot; spot2 != limit; ++spot2) {
+ cached_header->field_delete(&*spot2, true);
Review comment:
Headers were input for the commits that were added. Would it have passed
in the system and or test otherwise?
----------------------------------------------------------------
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]