diff --git a/default.go b/default.go index 63263c8..26cb016 100644 --- a/default.go +++ b/default.go @@ -14,7 +14,7 @@ import ( ) const ( - ContentTypeHtml = "text/html" + contentTypeHtml = "text/html" ) func defaultLinkHandler(link string) (*LinkInfo, error) { @@ -69,7 +69,7 @@ func defaultLinkHandler(link string) (*LinkInfo, error) { } switch contentType { - case ContentTypeHtml: + case contentTypeHtml: err = retrieveHtmlLinkTitle(ret, link) default: ret.Title = fmt.Sprintf("%s (%s, %s)", path.Base(u.Path), contentType, ByteCountDecimal(contentLength))