Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 9ea05c1

Browse files
committed
removed the Content-Length header option
Our files were being truncated even when we set this length to the size to the size of the data. So we are now just letting the request chunk the data to the server
1 parent cc043f2 commit 9ea05c1

5 files changed

Lines changed: 4 additions & 2 deletions

File tree

dashboard.tar.gz

18 Bytes
Binary file not shown.

digexp-dashboard/js/controllers/wcmDesignsController.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function($scope, $route) {
7373
$scope.push = function(library) {
7474
library.syncing = true;
7575
library.error = false;
76+
library.err = undefined;
7677
$scope.status = 'Pushing Library ' + library.title;
7778
try {
7879
wcmDesign.push(library).then(function() {
@@ -90,6 +91,7 @@ function($scope, $route) {
9091
$scope.pull = function(library) {
9192
library.syncing = true;
9293
library.error = false;
94+
library.err = undefined;
9395
$scope.status = 'Pulling Library ' + library.title;
9496
try {
9597
wcmDesign.pull(library).then(function() {
@@ -107,6 +109,7 @@ function($scope, $route) {
107109
$scope.pushAll = function(library) {
108110
library.syncing = true;
109111
library.error = false;
112+
library.err = undefined;
110113
$scope.status = 'Pushing All Content in Library ' + library.title;
111114
try {
112115
wcmDesign.push(library, true).then(function() {

digexp-wcm-design/lib/wcm-authenticated-request.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ var setContent = function(uri, contentType, data) {
446446
method : 'Put',
447447
headers : {
448448
'ContentType' : contentType,
449-
'Content-Type' : contentType,
450-
'Content-Length' : putData.length
449+
'Content-Type' : contentType
451450
}
452451
};
453452
authenticatedRequest(globalUser, globalPassword, callOptions, putData).then(function(data) {

release/digexp-toolkit.zip

3.19 KB
Binary file not shown.

wcm-design.tar.gz

3.31 KB
Binary file not shown.

0 commit comments

Comments
 (0)