Closed Bug 1343108 Opened 9 years ago Closed 9 years ago

Clean up obsolete $httpProvider defaults

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

These are redundant: // avoid CORS issue when getting the logs from the ftp site $httpProvider.defaults.useXDomain = true; delete $httpProvider.defaults.headers.common['X-Requested-With']; `useXDomain` never actually did anything since the PR that proposed it was never merged: https://github.com/angular/angular.js/issues/2956#issuecomment-19493940 And deleting the 'X-Requested-With' header isn't required as of Angular >1.1.x : https://github.com/angular/angular.js/issues/11008 https://github.com/angular/angular.js/commit/3a75b1124d062f64093a90b26630938558909e8d
Attachment #8849798 - Flags: review?(cdawson)
Comment on attachment 8849798 [details] [review] [treeherder] mozilla:httpprovider-defaults-cleanup > mozilla:master Cool! :)
Attachment #8849798 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/c94586ab6d77eb24def5b4bac31746c3458b0984 Bug 1343108 - Clean up obsolete $httpProvider defaults `useXDomain` never actually did anything since the PR that proposed it was never merged: https://github.com/angular/angular.js/issues/2956#issuecomment-19493940 And deleting the 'X-Requested-With' header isn't required as of Angular >1.1.x : https://github.com/angular/angular.js/issues/11008 https://github.com/angular/angular.js/commit/3a75b1124d062f64093a90b26630938558909e8d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: