File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
services/static-webserver/client/source/class/osparc/io/rest Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,19 @@ qx.Class.define("osparc.io.rest.Resource", {
2828 const headers = [ {
2929 key : "Accept" ,
3030 value : "application/json"
31+ } , {
32+ key : "Content-Type" ,
33+ value : "application/json"
34+ } , {
35+ key : "X-Simcore-Products-Name" ,
36+ value : qx . core . Environment . get ( "product.name" )
3137 } ] ;
3238
3339 if ( this . AUTHENTICATION !== undefined && this . AUTHENTICATION !== null ) {
3440 headers . concat ( this . AUTHENTICATION . getAuthHeaders ( ) ) ;
3541 }
3642
3743 headers . forEach ( item => request . setRequestHeader ( item . key , item . value ) ) ;
38-
39- request . setRequestHeader ( "Content-Type" , "application/json" ) ;
40-
41- const productName = qx . core . Environment . get ( "product.name" ) ;
42- request . setRequestHeader ( "X-Simcore-Products-Name" , productName ) ;
4344 } ) ;
4445 } ,
4546
You can’t perform that action at this time.
0 commit comments