Skip to content

Commit

Permalink
Fixed code sample fo CUrl. (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored Oct 13, 2020
1 parent da772dc commit 40b126c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
@ECHO OFF

curl -v -X {{method}} "{{requestUrl}}"
{% for header in request.meaningfulHeaders -%}
-H "{{ header.name }}: {{ header.value }}"
{% endfor -%}
{% if request.body != blank and request.bodyFormat == "raw" -%}
--data-ascii "{{ request.body | replace:'"','^"' }}"
--data-raw '{{ request.body }}'
{% endif -%}
{% if request.binary != blank and request.bodyFormat == "binary" -%}
--data-binary "@path/to/{{request.binary.name}}"
Expand Down

0 comments on commit 40b126c

Please sign in to comment.