| tag name | v0.1.8 (5620128ffbd91127ca696ab5ae39c9be7ffb2671) |
| tag date | 2020-11-09 13:58:03 -0500 |
| tagged by | Adnan Maolood <[email protected]> |
| tagged object | commit f6b0443a62... |
| download | archived-go-gemini-0.1.8.tar.xz archived-go-gemini-0.1.8.zip |
|---|
Version 0.1.8 is released!
Version 0.1.8 brings some bug fixes and API refinements.
Clients can now follow redirects to non-Gemini schemes. It is up to the
client to determine whether to follow these redirects in CheckRedirect.
(*Response).Body is now only guaranteed to be non-nil for successful
responses. To check if a response was successful, do:
if resp.Status.Class() == gemini.StatusClassSucess {
defer resp.Body.Close()
// ...
}
The function (*KnownHosts).LoadDefault has been removed. Clients should
provide the default path themselves.
The top-level Get and Do functions have also been removed.
KnownHosts and CertificateStore now expose more of their internal
functionality. The new Write and SetOutput functions allow you to add
new known hosts/certificates and configure where they are written.
(*ResponseWriter).SetMimetype has been renamed to
(*ResponseWriter).SetMediaType.