Closed jcamiel closed 2 months ago
max-redirs=-1 can't be used in [Options] section.
max-redirs=-1
[Options]
Example 1:
GET https://google.fr [Options] location: true max-redirs: -1 HTTP 200
$ hurl /tmp/google.hurl error: Parsing literal --> /tmp/google.hurl:4:13 | 4 | max-redirs: -1 | ^ expecting 'integer' |
Example 2:
GET https://google.fr [Options] location: true variable: max=-1 max-redirs: {{max}} HTTP 200
$ hurl /tmp/google.hurl error: Invalid variable type --> /tmp/google.hurl:5:15 | | GET https://google.fr | ... 5 | max-redirs: {{max}} | ^^^ expecting positive integer, actual value is integer <-1> |
max-redirs=-1
can't be used in[Options]
section.Example 1:
Example 2: