diff options
-rw-r--r-- | libgemini.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgemini.go b/libgemini.go index 20fc137..94744ba 100644 --- a/libgemini.go +++ b/libgemini.go | |||
@@ -47,10 +47,8 @@ const ( | |||
47 | ) | 47 | ) |
48 | 48 | ||
49 | var ( | 49 | var ( |
50 | HeaderPattern = regexp.MustCompile("^(\\d\\d)[ \\t]+(.*)$") | 50 | HeaderPattern = regexp.MustCompile("^(\\d\\d)[ \\t]+(.*)$") |
51 | MimeTypePattern = regexp.MustCompile("^[-\\w.]+/[-\\w.]+") | 51 | GeminiLinkPattern = regexp.MustCompile("^=>[ \\t]*([^ \\t]+)(?:[ \\t]+(.*))?$") |
52 | MimeCharsetPattern = regexp.MustCompile("charset=([^ ;]+)") | ||
53 | GeminiLinkPattern = regexp.MustCompile("^=>[ \\t]*([^ \\t]+)(?:[ \\t]+(.*))?$") | ||
54 | ) | 52 | ) |
55 | 53 | ||
56 | type GeminiHeader struct { | 54 | type GeminiHeader struct { |