def add_features_to_http_headers(features, headers):
 if features:
  for (k, v) in features.items():
   if (k.lower() in FEATURE_BLACKLIST):
    raise exception.UnsupportedHeaderFeature(feature=k)
   if (v is not None):
    headers[k.lower()] = unicode(v)

def add_features_to_http_headers ( features , headers ) : if features : for ( k , v ) in features . items ( ) : if ( k . lower ( ) in FEATURE_BLACKLIST ) : raise exception . UnsupportedHeaderFeature ( feature = k ) if ( v is not None ) : headers [ k . lower ( ) ] = unicode ( v )
adds additional headers representing glance features to be enabled .