Changeset 31979 for main/trunk

Show
Ignore:
Timestamp:
21.09.2017 12:15:31 (2 years ago)
Author:
kjdon
Message:

duplicate the content encoding value in case the original gets wiped over somewhere else

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/mod_gsdl.cpp

    r25560 r31979  
    491491      ap_set_content_type(r, val_copy); 
    492492#endif 
    493     } else if ((*here).first == "content-encoding") { 
    494       r->content_encoding = val; 
    495     } else { 
     493    } 
     494    else if ((*here).first == "content-encoding") { 
     495      r->content_encoding = strdup(val); 
     496    } 
     497    else { 
    496498#if _APACHE_MOD >= 2 
    497499      apr_table_set(r->headers_out, name, val);