nushell/crates/nu-command/src/network
Jack Wright 4d2d553cca
Use String::contains instead of exact match when matching content types for http requests. (#13791)
# Description
The existing code uses exact matches on content type. This can caused
things like "application/json; charset=utf-8" that contain a charset not
using send_json method.

NOTE: The charset portion in the above example would still be ignored as
we rely on serde and the client library to control the encoding, it is
still better to catch the json case.

---------

Co-authored-by: Ian Manske <ian.manske@pm.me>
2024-09-05 13:08:19 -05:00
..
http Use String::contains instead of exact match when matching content types for http requests. (#13791) 2024-09-05 13:08:19 -05:00
url Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
mod.rs fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
port.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00