blob: a6cc047db82c6dc48a982188b2d56909d2cc38c7 [file] [log] [blame]
package httputils
import (
"testing"
)
func TestDetectContentType(t *testing.T) {
input := []byte("That is just a plain text")
if contentType, _, err := DetectContentType(input); err != nil || contentType != "text/plain" {
t.Error("TestDetectContentType failed")
}
}