Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

new lines in curl example

  • Loading branch information...
commit 31690d593d6030da9a77974f05f0089287fec5a8 1 parent 9ef3368
@tu1ly tu1ly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  curl.html
View
2  curl.html
@@ -2,6 +2,6 @@
<p class="ioDesc">Request</p>
<pre class="incoming"><code class="language-bash">curl --include<% if @headers: %><% for header,value of @headers: %> --header <%= @helpers.escape "#{header}: #{value}" %><% end %> \
<% end %><% if @method isnt 'GET' or @body: %> --request <%= @method %> \
- <% end %><% if @body: %> --data <%= @helpers.escape @body %> \
+ <% else if @body: %> --data-binary "<%= @body.replace(/(['"])/g, "\\$1") %>" \
<% end %>"<%= @apiUrl %><%= @url %>"</code></pre>
</section>

0 comments on commit 31690d5

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