Fixing up $httpOptions