angular2-interceptors is modifying incoming options objects.
This poses a problem when the same options object is cached and reused by calling code.
This pull request adds and uses a method for creating a shallow copy of the options object so that no parameters are modified, and cannot break calling code.
angular2-interceptors is modifying incoming options objects.
This poses a problem when the same options object is cached and reused by calling code.
This pull request adds and uses a method for creating a shallow copy of the options object so that no parameters are modified, and cannot break calling code.