mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 19:40:17 +00:00
9 lines
136 B
Go
9 lines
136 B
Go
|
package writefreely
|
||
|
|
||
|
import "mime"
|
||
|
|
||
|
func IsJSON(h string) bool {
|
||
|
ct, _, _ := mime.ParseMediaType(h)
|
||
|
return ct == "application/json"
|
||
|
}
|