alexcrichton / alexcrichton/curl-rust

`Easy2::max_redirections` takes u32 instead of i32

Open
#603 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.1k
Forks
258
PR merge metrics
No merged PRs in 30d

Description

The `Easy2::max_redirections` function should take a i32 value since the documentation defines the value `-1` as infinite redirects[^1], although this is the default value you're unable to reset it back to the default using the function.

[^1]: https://curl.se/libcurl/c/CURLOPT_MAXREDIRS.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.