diff --git a/binding/yaml.go b/binding/yaml.go index 545c1038..2f538b12 100644 --- a/binding/yaml.go +++ b/binding/yaml.go @@ -1,4 +1,4 @@ -// Copyright 2014 Manu Martinez-Almeida. All rights reserved. +// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. @@ -8,8 +8,6 @@ import ( "bytes" "io" "net/http" - - "gopkg.in/yaml.v2" ) type yamlBinding struct{} diff --git a/context.go b/context.go index 89693d0c..0dc9aada 100644 --- a/context.go +++ b/context.go @@ -31,8 +31,8 @@ const ( MIMEPlain = binding.MIMEPlain MIMEPOSTForm = binding.MIMEPOSTForm MIMEMultipartPOSTForm = binding.MIMEMultipartPOSTForm - BodyBytesKey = "_gin-gonic/gin/bodybyteskey" MIMEYAML = binding.MIMEYAML + BodyBytesKey = "_gin-gonic/gin/bodybyteskey" ) const abortIndex int8 = math.MaxInt8 / 2