def force_header_for_response(response, header, value):
 force_headers = {}
 if hasattr(response, 'force_headers'):
  force_headers = response.force_headers
 force_headers[header] = value
 response.force_headers = force_headers

def force_header_for_response ( response , header , value ) : force_headers = { } if hasattr ( response , 'force_headers' ) : force_headers = response . force_headers force_headers [ header ] = value response . force_headers = force_headers
forces the given header for the given response using the header_control middleware .