diff options
-rw-r--r-- | gopherproxy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gopherproxy.go b/gopherproxy.go index 8ba515e..11c08d5 100644 --- a/gopherproxy.go +++ b/gopherproxy.go | |||
@@ -132,7 +132,7 @@ func GopherHandler(tpl *template.Template, robotsdata *robotstxt.RobotsData, rob | |||
132 | } | 132 | } |
133 | 133 | ||
134 | if res.Body != nil { | 134 | if res.Body != nil { |
135 | if strings.HasSuffix(uri, ".txt") || strings.HasSuffix(uri, ".md") { | 135 | if len(parts) >= 2 && parts[1] == "0" { //strings.HasSuffix(uri, ".txt") || strings.HasSuffix(uri, ".md") { |
136 | // handle .txt files | 136 | // handle .txt files |
137 | buf := new(bytes.Buffer) | 137 | buf := new(bytes.Buffer) |
138 | buf.ReadFrom(res.Body) | 138 | buf.ReadFrom(res.Body) |