Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update formating curl example

  • Loading branch information...
commit b5dbbbd166bc5215d1204e2367c495b36abf5273 1 parent 56225b8
@abtris abtris authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 curl.html
View
18 curl.html
@@ -1,12 +1,12 @@
<section name="curl" class="curl">
- <p class="ioDesc">Request</p>
+ <p class="ioDesc">Request</p>
<pre class="incoming"><code class="language-bash">curl --include \
- <% if @method is 'HEAD' : %> -I \
- <% else if @method isnt 'GET' or @body: %> --request <%= @method %> \
- <% end %>
- <% if @headers: %><% for header,value of @headers: %>
- --header <%= @helpers.escape "#{header}: #{value}" %> \
- <% end %>
- <% end %><% if @body: %> --data-binary "<%= @body.replace(/(['"])/g, "\\$1") %>" \
- <% end %> <%= @apiUrl %><%= @url %></code></pre>
+<% if @method is 'HEAD' : %> -I \
+<% else if @method isnt 'GET' or @body: %> --request <%= @method %> \
+<% end %>
+<% if @headers: %><% for header,value of @headers: %>
+ --header <%= @helpers.escape "#{header}: #{value}" %> \
+<% end %>
+<% end %><% if @body: %> --data-binary "<%= @body.replace(/(['"])/g, "\\$1") %>" \
+ <% end %> <%= @apiUrl %><%= @url %></code></pre>
</section>
Please sign in to comment.
Something went wrong with that request. Please try again.