@@ -39,9 +39,7 @@ File = (function(superClass) {
3939
4040 File . prototype . put = function ( content , callback ) {
4141 var headers ;
42- headers = {
43- 'Content-Type' : null
44- } ;
42+ headers = { } ;
4543 return this . client . req ( '/v1/data/' + this . data_path , 'PUT' , content , headers , callback ) ;
4644 } ;
4745
@@ -78,25 +76,22 @@ File = (function(superClass) {
7876 File . prototype . getString = function ( callback ) {
7977 var headers ;
8078 headers = {
81- 'Accept' : 'text/plain' ,
82- 'Content-Type' : 'text/plain'
79+ 'Accept' : 'text/plain'
8380 } ;
8481 return this . client . req ( '/v1/data/' + this . data_path , 'GET' , '' , headers , callback ) ;
8582 } ;
8683
8784 File . prototype . getJson = function ( callback ) {
8885 var headers ;
8986 headers = {
90- 'Accept' : 'application/json' ,
91- 'Content-Type' : 'text/plain'
87+ 'Accept' : 'application/json'
9288 } ;
9389 return this . client . req ( '/v1/data/' + this . data_path , 'GET' , '' , headers , callback ) ;
9490 } ;
9591
9692 File . prototype . exists = function ( callback ) {
9793 var headers ;
9894 headers = {
99- 'Content-Type' : 'text/plain' ,
10095 'Accept' : 'text/plain'
10196 } ;
10297 return this . client . req ( '/v1/data/' + this . data_path , 'HEAD' , '' , headers , function ( response , status ) {
@@ -186,9 +181,7 @@ Dir = (function(superClass) {
186181
187182 Dir . prototype . exists = function ( callback ) {
188183 var headers ;
189- headers = {
190- 'Content-Type' : 'text/plain'
191- } ;
184+ headers = { } ;
192185 return this . client . req ( '/v1/data/' + this . data_path , 'GET' , '' , headers , function ( response , status ) {
193186 if ( status === 200 ) {
194187 return callback ( true ) ;
@@ -222,9 +215,7 @@ DirListing = (function() {
222215
223216 DirListing . prototype . loadNextPage = function ( cb ) {
224217 var headers , query ;
225- headers = {
226- 'Content-Type' : 'text/plain'
227- } ;
218+ headers = { } ;
228219 query = this . page === null ? '' : "?marker=" + ( encodeURIComponent ( this . page . marker ) ) ;
229220 return this . client . req ( '/v1/data/' + this . data_path + query , 'GET' , '' , headers , ( function ( _this ) {
230221 return function ( response , status ) {
0 commit comments