adnano
8a337ef24c
Update README.md
2024-05-11 15:41:13 -04:00
adnano
fed79a57c6
Update dependencies
2024-05-11 15:23:37 -04:00
adnano
53ac2371ef
Use bytes.CutSuffix to trim CRLF
2024-03-10 09:35:32 -04:00
adnano
2e23e6b8f5
certificate: Fix store directory creation
2024-01-20 17:31:30 -05:00
adnano
b3e1a7053d
readme: Update Project Gemini website
2023-12-25 10:43:54 -05:00
adnano
3b101e802d
Run go fmt
2023-06-29 01:50:57 -04:00
adnano
4a694c0eb7
Upgrade to Go 1.18
2023-06-29 01:47:52 -04:00
adnano
b541609d7d
fs: Prevent invalid directory links
...
A file with a name like "gemini:example" would previously result in the
following invalid link:
=> gemini:example gemini:example
Fix by prepending a "./" before each filename, so that the resulting
link looks like:
=> ./gemini:example gemini:example
2022-05-07 13:54:56 -04:00
Yujiri
0db805a1f9
Fix parsing of list item lines
...
According to section 5.5.2 of the Gemini specification (v0.16.1), the
space is mandatory.
2022-03-15 11:07:04 -04:00
adnano
0e0598f086
doc: Fix Mux documentation
2022-02-16 12:01:55 -05:00
adnano
fae6fb2a81
readme: Update Gemini specification version
2021-12-18 12:51:04 -05:00
adnano
bd3717fae3
mux: Tweak documentation
2021-06-26 20:26:30 -04:00
adnano
1c2f1481de
mux: Add more tests
2021-06-26 20:16:38 -04:00
adnano
4b95dd8ecc
mux: Remove support for handling schemes
...
Also fix redirection to subtree roots for wildcard patterns and patterns
without a host name.
2021-06-26 18:50:09 -04:00
adnano
cdd1030d99
fs: Avoid equality check if lengths don't match
2021-04-21 12:48:27 -04:00
adnano
ac1b8652f1
fs: Improve redirect behavior
2021-04-21 12:41:56 -04:00
adnano
0bc47513aa
fs: Refactor
2021-04-21 12:18:52 -04:00
adnano
e915dd37e4
fs: Remove ServeContent function
2021-04-21 11:41:40 -04:00
adnano
7e585304a2
LoggingMiddleware: Prevent writing empty meta
2021-04-21 11:38:34 -04:00
adnano
08fac3bf87
fs: Fix panic on indexing URL of zero length
2021-04-21 11:36:43 -04:00
adnano
8c54df59bb
Update README.md
2021-03-24 13:30:46 -04:00
adnano
d63d7413cc
mux: Add copyright notice
2021-03-24 13:09:53 -04:00
adnano
cf5c6441df
Split LICENSE into two files
2021-03-24 13:08:32 -04:00
adnano
b2fa5aef0c
Revert "Require Go 1.16"
...
This reverts commit a11fe5f12dd0e7dd542e08f37f6cd900a41eaf37.
2021-03-23 22:05:12 -04:00
adnano
ef2b0a94af
Revert "Replace uses of ioutil with io"
...
This reverts commit c5dd17f286db4cfd6fe6b53476d15eaefd488180.
2021-03-23 22:02:32 -04:00
adnano
5ed51c632f
response: Remove unnecessary length check
2021-03-20 18:29:40 -04:00
adnano
0fb35e1337
response: Limit response header size
2021-03-20 14:01:45 -04:00
adnano
4ee8740ee3
response: Don't use bufReadCloser
2021-03-20 13:41:53 -04:00
adnano
21845ca419
fs: Fix empty media type for directory index pages
2021-03-20 13:33:15 -04:00
adnano
dfe8446d49
client: Only get cert if TrustCertificate is set
2021-03-20 12:54:41 -04:00
adnano
03767f7a68
client: Close connection on error
2021-03-20 12:49:27 -04:00
adnano
ca2680a958
Tweak request and response parsing
2021-03-20 12:27:20 -04:00
adnano
b3c0a5040d
response: Treat empty meta as invalid
2021-03-20 12:07:24 -04:00
adnano
be3417c785
Remove unused field
2021-03-20 12:05:21 -04:00
adnano
57968c0fce
Remove charset=utf-8 from default media type
2021-03-20 12:04:42 -04:00
adnano
8066279549
Rename ServeMux to Mux
2021-03-15 15:44:35 -04:00
adnano
77a556d61e
status: Reintroduce StatusSensitiveInput
2021-03-15 15:19:43 -04:00
adnano
ec3557df46
certificate.Store: Call os.MkdirAll on Load
2021-03-09 08:59:28 -05:00
adnano
3bd639063a
tofu: Use stricter file permissions
2021-03-09 08:58:36 -05:00
Noah Kleiner
14346de781
tofu: Create path if not exists
...
This commit is a follow-up to 90b1e98d which does not take into account
the case that the parent directory of the known_hosts file does not already exist.
2021-03-09 08:50:42 -05:00
adnano
7101402517
Remove StatusSensitiveInput
2021-03-08 14:08:45 -05:00
adnano
8c453c7531
examples/client: Fix certificate trust check
2021-03-08 14:07:18 -05:00
adnano
ec52faab6b
tofu: Fix known host unmarshaling
2021-03-06 15:49:11 -05:00
adnano
44921d55ad
tofu: Use base64-encoded sha256 fingerprints
2021-03-06 15:24:15 -05:00
adnano
8ec13e2c03
tofu: Fix format in error message
2021-03-06 15:13:06 -05:00
adnano
90b1e98d61
tofu: Automatically create file in KnownHosts.Load
2021-03-06 15:11:30 -05:00
adnano
16e4e9ad7d
certificate.Store: Don't call os.MkdirAll
2021-03-06 13:11:11 -05:00
adnano
162928e85f
certificate.Store: Don't check parent scopes in Lookup
...
Limit the scopes of client certificates to hostnames only instead of
hostnames and paths.
2021-03-06 12:59:33 -05:00
adnano
159d88e894
certificate.Store: Make 100 years the default duration
2021-03-05 23:29:56 -05:00
adnano
747cee74c3
Move LoggingMiddleware out of examples/server.go
2021-03-05 11:35:01 -05:00