Skip to content
Browse files

Fix cURL with GET data

  • Loading branch information...
1 parent b5c3b2b commit f80ad58e1bd5d4d60e77ccb7277a1edee7708e14 @Almad Almad committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 curl.html
View
2 curl.html
@@ -2,7 +2,7 @@
<p class="ioDesc">In</p>
<pre class="incoming brush:shell">
curl --include<% if @headers: %><% for header,value of @headers: %> --header <%= @helpers.escape "#{header}: #{value}" %><% end %> \
- <% end %><% if @method isnt 'GET': %> --request <%= @method %> \
+ <% end %><% if @method isnt 'GET' or @body: %> --request <%= @method %> \
<% end %><% if @body: %> --data <%= @helpers.escape @body.join('') %> \
<% end %> "<%= @apiUrl %><%= @url %>"
</pre>

0 comments on commit f80ad58

Please sign in to comment.
Something went wrong with that request. Please try again.