src/iopa-rest/context.js
function _setIgnoreCase(obj, key, val) {
     var key_lower = key.toLowerCase();
     for (var p in obj) {
         if (obj.hasOwnProperty(p) && key_lower == p.toLowerCase()) {
             obj[p] = val;
             return;
         }
     }
     obj[key] = val;

 }
function _setIgnoreCase(obj, key, val) {
     var key_lower = key.toLowerCase();
     for (var p in obj) {
         if (obj.hasOwnProperty(p) && key_lower == p.toLowerCase()) {
             obj[p] = val;
             return;
         }
     }
     obj[key] = val;

 }
function _setIgnoreCase ( obj , key , val ) { var key_lower = key . toLowerCase ( ) ; for ( var p in obj ) { if ( obj . hasOwnProperty ( p ) && key_lower == p . toLowerCase ( ) ) { obj [ p ] = val ; return ; } } obj [ key ] = val ; }
Adds or updates a javascript object, case insensitive for key property

@method private_setIgnoreCase
@param obj (object)  the object to search
@param key (string) the new or existing property name
@param val (string) the new property value
@private
Adds or updates a javascript object case insensitive for key property