Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ruby/net-http] Improve performance of HTTPHeader#content_type
In the existing implementation, `main_type` and `sub_type` would end up being called multiple times potentially. Instead of doing that, save the result so it can be re-used. ruby/net-http@179976f7ea
- Loading branch information