Releases: ponylang/http
Releases · ponylang/http
0.2.2
This release contains a bugfix and adapts to changes in ponyc 0.30, namely the exclusion of the net/ssl
package from the pony standard library.
Fixed
- Requests/Responses that were not sent as
Chunked
and had bodies with > 10000 bytes have been handled incorrectly. Namely the actual request/response with headers and all has never been sent to theHTTPHandler
of either client or server. Only the body has been delivered and might have been mistaken as the body of another request. See #25
Changed setup
The http
package now depends on https://github.com/ponylang/net-ssl and https://github.com/ponylang/regex (only for testing). And thus setup must include the following steps:
# adding dependencies
# add `net_ssl` package as dependency
stable add github ponylang/net-ssl
# make sure a compatible ssl lib is installed. See: https://github.com/ponylang/net-ssl
# only for running the http package tests
stable add github ponylang/regex
# actually add http as dependency
stable add github ponylang/http --tag 0.2.2
Release 0.2.1
This is just a small bugfix release:
- remove default port in Host: attribute by @WoodyAtHome #18
This issue could cause issues when using the HTTP client with HTTP servers relying on virtual servers based on the name listed in theHost
header. The default port (e.g.:80
) was added here and thus confusing servers. - fix the test setup with ponyc 0.28.1
Release 0.2.0
Changed
- The behavior of the HTTP Parser was changed. If we have a request or response that is neither
Chunked
norStreamed
(body exceeds a size of 10000 bytes), then the body is delivered in the payload and can be obtained withPayload.body()?
. Previously it was only received usingHTTPSession._chunk
(followed byHTTPSession._finish
. Now the payload is only received viaHTTPSession._deliver
. - Improved Error Handling the HTTP Parser
- Made
_HTTPParser
public:HTTPParser
- Adapted to the new partial
time.PosixDate.format
in ponyc 0.26.0.