summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-28Tag 1.2.2http-client-1.xPeter Bex
2024-06-28Check for closed ports when writing chunks and give a hint to the user1.2.2Peter Bex
This makes it a bit more obvious what happened in cases like #1838, reported by Woodrow E Douglass. While at it, add some more test cases for this particular case, but also for retry-attempts, as this is also affected when retry is allowed for non-idempotent requests (which is pretty uncommon, but possible)
2024-06-27Allow raw string data instead of file for multipart content (#1838)Peter Bex
This allows one to pass in a filename for the data.
2024-06-27Fix broken test for string portsPeter Bex
For some reason the hardcoded length was incorrect. It makes more sense to not hardcode it, as the exact value might differ depending on the boundary etc.
2022-03-15Try to determine multipart content length for string portsPeter Bex
This makes it slightly more reliable for certain servers which absolutely require content length. An alternative would be to have an explicit API for sending static string contents. This could be in addition to this approach, because this should always be a net win.
2022-02-23Drop redundant stripping of directory name when sending filesPeter Bex
As pointed out by Siiky, intarweb already strips the directory name, so we don't have to do it here. Allows us to drop an import, which is always nice for clarity. Also update the copyright year.
2021-09-10Tag 1.2.11.2.1Peter Bex
2021-09-06Work around "fake" empty path by uri-common (#1448)Peter Bex
When we check to see if the underlying path must be updated to be present, we should know that uri-common is faking a path of (/ "") when the path is empty. The path normalization in uri-common could use some work though, as it never really touches the underlying uri-generic object. On the other hand, this is sort of the promise that uri-common tries to make - it never mangles the uri object unless you explicitly update something yourself.
2021-09-03Also mangle the path when sending to a proxyPeter Bex
That path should also have a trailing slash just like when requesting a regular URI. See #1781
2021-09-01Add request method to arguments inside exn for better debuggingPeter Bex
2020-04-05Tag 1.21.2Peter Bex
2020-04-05Change default client-software so it doesn't contain spaces in the product ↵Peter Bex
(which is disallowed by RFC)
2019-05-05Add missing 1.1 release to release-info, and add new 1.1.1 releasePeter Bex
2019-05-05Fix tests with CHICKEN 5.0.21.1.1Peter Bex
Keywords can't be (ab)used as identifier anymore, so we can't bind expression: with let-syntax. Instead, simply use the plain symbol.
2019-01-20Use https instead of http for locationsPeter Bex
2018-10-19Expose response object in redirect depth exceeded condition1.1Peter Bex
Thanks to Norman Gray for pointing out that the response was missing from the condition object.
2018-07-29Port http-client to CHICKEN 51.0Peter Bex