Skip to content

Commit 25992a0

Browse files
Merge pull request #515 from plotly/fix-post-request
Fix Plotly online POST request
2 parents fd99df9 + 8dac019 commit 25992a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plotly/plotly_aux/makecall.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414

1515
platform = 'MATLAB';
1616

17-
url = [domain '/clientresp'];
18-
payload = struct( ...
17+
url = [domain '/clientresp/'];
18+
19+
st = webwrite( ...
20+
url, ...
1921
'platform',platform, ...
2022
'version',plotly_version, ...
21-
'args',args, ...
23+
'args',m2json(args), ...
2224
'un',un, ...
2325
'key',key, ...
2426
'origin',origin, ...
25-
'kwargs',kwargs ...
27+
'kwargs',m2json(kwargs) ...
2628
);
27-
28-
st = webwrite(url, payload);
2929
end

0 commit comments

Comments
 (0)