From 86752a55b6278e6b989466aee53c92b56fd148f9 Mon Sep 17 00:00:00 2001 From: smallfish Date: Mon, 18 Aug 2014 15:03:10 +0800 Subject: [PATCH] rename SetAgent and ToXML --- httplib/httplib.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplib/httplib.go b/httplib/httplib.go index ca012502..ca7ebdd8 100644 --- a/httplib/httplib.go +++ b/httplib/httplib.go @@ -127,7 +127,7 @@ func (b *BeegoHttpRequest) SetEnableCookie(enable bool) *BeegoHttpRequest { } // SetUserAgent sets User-Agent header field -func (b *BeegoHttpRequest) SetAgent(useragent string) *BeegoHttpRequest { +func (b *BeegoHttpRequest) SetUserAgent(useragent string) *BeegoHttpRequest { b.setting.UserAgent = useragent return b } @@ -411,7 +411,7 @@ func (b *BeegoHttpRequest) ToJson(v interface{}) error { // ToXml returns the map that marshals from the body bytes as xml in response . // it calls Response inner. -func (b *BeegoHttpRequest) ToXML(v interface{}) error { +func (b *BeegoHttpRequest) ToXml(v interface{}) error { data, err := b.Bytes() if err != nil { return err