Rename constant ContentTypeHtml to make private

This commit is contained in:
Tyler 2019-10-03 20:03:11 -04:00
parent e619ea0751
commit e50488b364

View File

@ -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))