1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 21:02:28 +01:00
Commit Graph

275 Commits

Author SHA1 Message Date
adnano
cdf49622e2 Remove dependency on golang.org/x/crypto 2020-10-11 21:55:30 -04:00
adnano
38e6f42295 Detect mimetypes 2020-10-11 20:13:53 -04:00
adnano
1c65b94f52 Update comments 2020-10-11 19:41:44 -04:00
adnano
037a707863 Move filesystem code to its own file 2020-10-11 18:57:04 -04:00
adnano
80828c126c Implement matching of hostnames and schemes 2020-10-11 17:53:22 -04:00
adnano
79c379c2d4 Update README.md 2020-10-11 15:23:41 -04:00
adnano
685ed38703 Fix parsing of links without names 2020-09-29 21:27:16 -04:00
adnano
1d19050f20 Create the certificate store if it does not exist 2020-09-29 11:13:16 -04:00
adnano
603704568c Add newlines after Gemini text lines 2020-09-29 10:16:55 -04:00
adnano
38387f3d62 Implement parsing of Gemini text responses 2020-09-29 10:13:57 -04:00
adnano
9c85725f3f Use path instead of filepath 2020-09-28 19:54:08 -04:00
adnano
41b0314053 Update README.md 2020-09-28 18:28:52 -04:00
adnano
980bb0e8aa Update documentation link 2020-09-28 18:22:18 -04:00
adnano
0f890caece Update module name 2020-09-28 18:19:59 -04:00
adnano
004d76265e examples/client: Add optional host argument 2020-09-28 16:13:14 -04:00
adnano
77486c2d8a Refuse requests for non-gemini schemes 2020-09-28 16:07:51 -04:00
adnano
0f358ece8d Remove support for matching schemes 2020-09-28 16:02:32 -04:00
adnano
140c8c6b9d Fix mux URL sorting logic 2020-09-28 15:33:15 -04:00
adnano
beef4fb0dc Fix client example error handling 2020-09-28 14:26:09 -04:00
adnano
88b358bb9d examples/client: Disable echo for sensitive input 2020-09-28 14:20:19 -04:00
adnano
65736ae718 Use net/http implementation of ServeMux 2020-09-28 03:15:19 -04:00
adnano
f051b33107 Move vendored code to vendor.go 2020-09-28 02:29:32 -04:00
adnano
4b8049016c Update comments 2020-09-28 02:28:28 -04:00
adnano
094312d48b Use splitHostPort function from net/url 2020-09-28 02:27:29 -04:00
adnano
7fcfc5ee41 Remove unused code 2020-09-28 02:17:56 -04:00
adnano
b053a12ffa Update comments 2020-09-28 02:16:49 -04:00
adnano
8a3d6e3321 Update comments 2020-09-28 02:13:46 -04:00
adnano
3d8e9f3c44 Don't trim trailing slash from Handler patterns 2020-09-28 02:06:15 -04:00
adnano
b34294db1a Add WithInput helper functions 2020-09-28 02:05:37 -04:00
adnano
b0ec0fe937 Use WithCertificate helper in auth example 2020-09-28 01:14:29 -04:00
adnano
49f0063186 Add WithCertificate helper function 2020-09-28 01:10:36 -04:00
adnano
813a1b8957 Remove unused import 2020-09-28 00:42:19 -04:00
adnano
5758040909 Remove NewCertificateStore function 2020-09-28 00:41:00 -04:00
adnano
3498f81339 Make the default client generate certificates 2020-09-28 00:38:11 -04:00
adnano
e19185a0b2 Update documentation 2020-09-28 00:29:11 -04:00
adnano
959e46d12a Remove log.Print call 2020-09-28 00:08:42 -04:00
adnano
60d3cfb1c1 Return certificate if it exists in the store 2020-09-28 00:03:42 -04:00
adnano
a8f1b8ab1f Only generate certificates after CertificateRequired 2020-09-27 23:58:45 -04:00
adnano
ddd5830dd2 Generate certificates on demand 2020-09-27 23:49:41 -04:00
adnano
f42c150416 Remove tilde from comment 2020-09-27 22:19:24 -04:00
adnano
828497fdc5 Directly initialize DefaultClient 2020-09-27 22:18:21 -04:00
adnano
4f77325c7f Move DefaultClient up 2020-09-27 22:15:36 -04:00
adnano
1c89de359c Clarify comment 2020-09-27 22:13:50 -04:00
adnano
4197d51545 Split Redirect into two functions 2020-09-27 22:06:08 -04:00
adnano
148910dade Use helper functions throughout 2020-09-27 22:03:09 -04:00
adnano
c9d03a516d Add SetMimetype convenience function 2020-09-27 21:53:58 -04:00
adnano
c25a128d2e Fix README.md 2020-09-27 21:40:51 -04:00
adnano
304e543637 Check certificate notBefore and notAfter times 2020-09-27 21:37:10 -04:00
adnano
fe1ad28e20 Trim trailing slash from Handler patterns 2020-09-27 21:24:08 -04:00
adnano
a645b03db4 Move package documentation comment 2020-09-27 21:19:34 -04:00