Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes insecure and timeout flags #8255

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

alesito85
Copy link
Contributor

Description

Fixes #8098 by properly parsing insecure flag and also fixes the timeout flag, which is described as max-time (from curl?).

User-Facing Changes

The only change is that the flags now work.

Tests + Formatting

Everything passes.

Screenshots

Before
image

After

image

@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #8255 (9b40e7d) into main (9e589a9) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8255      +/-   ##
==========================================
- Coverage   67.72%   67.71%   -0.01%     
==========================================
  Files         621      621              
  Lines       99312    99312              
==========================================
- Hits        67257    67249       -8     
- Misses      32055    32063       +8     
Impacted Files Coverage Δ
crates/nu-command/src/network/http/get.rs 66.87% <0.00%> (ø)
crates/nu-parser/src/lite_parser.rs 67.18% <0.00%> (-2.17%) ⬇️
crates/nu-protocol/src/ty.rs 86.42% <0.00%> (-0.72%) ⬇️

@fdncred
Copy link
Collaborator

fdncred commented Feb 28, 2023

nice! Thanks for tracking down these bugs and fixing them!

@fdncred fdncred merged commit ffc3727 into nushell:main Feb 28, 2023
fdncred pushed a commit that referenced this pull request Feb 28, 2023
# Description

Follow up of #8255

Sorry about the max-time argument, I didn't pay attention to the
copy-paste. Regarding the insecure argument, the problem was before I
began to work on the refacto. My mistake was to not have tested this
argument.

# User-Facing Changes

None.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http get --insecure does not work
2 participants