Permalink
Browse files

new lines in curl example

  • Loading branch information...
1 parent 9ef3368 commit 31690d593d6030da9a77974f05f0089287fec5a8 @tu1ly tu1ly committed Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 curl.html
View
@@ -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.