You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minreq is currently unable to handle headers appearing multiple times in the response.
Only the last value is stored, as it is inserted over the previous values.
Great! I need a quick fix so I will do it myself but it would be great if that could benefit to other users too. I could do a PR. How would you prefer to solve this? Using a custom HeaderMaplike reqwest did or using a HashMap<String, Vec<String>>?
I haven't given it much thought. Reqwest's solution certainly makes for a clean API, but I fear that would require quite a bit of code, and I'd rather keep minreq as simple as possible. I think a HashMap<String, Vec<String>> would be good if combined with a convenience function for Response, e.g. Response::get_header(key: &str) -> Option<&str>, which would just return the first header, if any.
Minreq is currently unable to handle headers appearing multiple times in the response.
Only the last value is stored, as it is inserted over the previous values.
minreq/src/response.rs
Line 303 in efbaf75
The text was updated successfully, but these errors were encountered: