Skip to content

Commit

Permalink
change header analyse
Browse files Browse the repository at this point in the history
  • Loading branch information
stock committed Dec 28, 2014
1 parent 362b814 commit 7b30c2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/common/page/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Page struct {
// The body is plain text of crawl result.
body string

header map[string][]string
header http.Header
cookies []*http.Cookie

// The docParser is a pointer of goquery boject that contains html result.
Expand All @@ -46,12 +46,12 @@ func NewPage(req *request.Request) *Page {
}

// SetHeader save the header of http responce
func (this *Page) SetHeader(header map[string][]string) {
func (this *Page) SetHeader(header http.Header) {
this.header = header
}

// GetHeader returns the header of http responce
func (this *Page) GetHeader() map[string][]string {
func (this *Page) GetHeader() http.Header {
return this.header
}

Expand Down

0 comments on commit 7b30c2b

Please sign in to comment.