Both anonymous gist and private gist need user-agent header.
So I move a code to the proper place.