// Copyright 2017 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package tool import ( "fmt" "math" "net/http" "strings" ) // IsODMLFile returns true of the file has an odML header func IsODMLFile(data []byte) bool { if !IsTextFile(data) { return false } return strings.Contains(string(data), "