Skip to content

Commit

Permalink
update for angular > 1.2.2
Browse files Browse the repository at this point in the history
Content-type header must be undefined rather than false when using
angular 1.2.2 or later
  • Loading branch information
burgessa23 committed Mar 28, 2014
1 parent 28d8422 commit 5162644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/front-end/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ angular.module('imageuploadDemo', ['imageupload'])
formData.append('image', image, image.name);

$http.post('upload', formData, {
headers: { 'Content-Type': false },
headers: { 'Content-Type': undefined },
transformRequest: angular.identity
}).success(function(result) {
$scope.uploadedImgSrc = result.src;
Expand Down

0 comments on commit 5162644

Please sign in to comment.