bumped to 0.18.4

This commit is contained in:
HoneyryderChuck 2021-12-27 01:40:05 +02:00
parent a3a6324d18
commit 87bb4a4994
4 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,14 @@
# 0.18.4
## Improvements
* faraday adapter: added support for `#on_data` callback in order to support [faraday streaming](https://lostisland.github.io/faraday/usage/streaming).
* multipart plugin: removed support for file mime type detection using `mime-types`. The reasoning behind it was that `mime-types` uses the filename, which is a very innacurate detection strategy (ex: an mp4 video will be identified as `application/mp4`, instead of the correct `video/mp4`).
* multipart plugin: supported for file mime type detection using `marcel` and `filemagic` was added. Both use the magic header bytes, which is a more accurate strategy for file type detection.
## Bugfixes
* webmock adapter has been reimplemented to work with `httpx` plugins (such as the `:retries` plugin). Some other fixes were applied to make it work better under `vcr` (a common `webmock` extension).
* fixed the URI-related bug which was making requests stall under ruby 3.1 (still not officially testinng against it).

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "socket"
require "ipaddr"
module HTTPX

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module HTTPX
VERSION = "0.18.3"
VERSION = "0.18.4"
end

View File

@ -1,4 +1,7 @@
-
-
name: "0.18.4"
path: "0_18_4_md.html"
-
name: "0.18.3"
path: "0_18_3_md.html"