Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
Merge 30efa26 into 8bc48e4
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk committed May 28, 2016
2 parents 8bc48e4 + 30efa26 commit fff3fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func Fetch(url string) (doc *goquery.Document, err error) {
}
req.Header.Set("User-Agent", USER_AGENT)

// set Cookie
// CF=4 makes it possible to show "Import into BibTeX" link
req.AddCookie(&http.Cookie{Name: "GSP", Value: "CF=4"})

// send request and get response
client := http.DefaultClient
res, err := client.Do(req)
Expand Down

0 comments on commit fff3fac

Please sign in to comment.