<commit_before>angular.module('media_manager')
.factory('Collection', ['$resource',  'AppConfig', function($resource, AppConfig){
  var host = AppConfig.media_management_api_url;
  var headers = {
    'Authorization': AppConfig.authorization_header
  };
  return $resource(host + '/collections/:id',
    { id: '@id' }, {
      'get': {
        method: 'GET',
        headers: headers,
        url: host + '/collections/:id'
      },
      'saveImages': {
        method: 'POST',
        headers: headers,
        url: host + '/collections/:id/images',
        isArray: true
      },
      'update': {
        method:'PUT',
        headers: headers
      }
    }
  );
}]);<commit_msg>Ensure headers set on collection update request.<commit_after>angular.module('media_manager')
.factory('Collection', ['$resource',  'AppConfig', function($resource, AppConfig){
  var host = AppConfig.media_management_api_url;
  var headers = {
    'Authorization': AppConfig.authorization_header
  };
  return $resource(host + '/collections/:id',
    { id: '@id' }, {
      'get': {
        method: 'GET',
        headers: headers,
        url: host + '/collections/:id'
      },
      'update': {
        method: 'POST',
        headers: headers,
        url: host + '/collections/:id'
      },
      'saveImages': {
        method: 'POST',
        headers: headers,
        url: host + '/collections/:id/images',
        isArray: true
      },
      'update': {
        method:'PUT',
        headers: headers
      }
    }
  );
}]);
{'fraction_non_alphanumeric': 0.16084377059986815, 'fraction_numerical': 0.0, 'mean_word_length': 2.3216630196936543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '907337', 'n_tokens_mistral': 452, 'n_tokens_neox': 461, 'n_words': 94}