stdio.go - content type detection