I would like to enable the starfox-preview. In order to do that, a header must be set like this: eq.Header.Add("Accept", "application/vnd.github.starfox-preview")
I tested this with setting it in ctxhttp.go, which is of course only good for testing. Where would be the right place to accomplish this? The Post() func in ctxhttp.go immediately returns the response with the execution of Do(). Thx!
I would like to enable the starfox-preview. In order to do that, a header must be set like this:
eq.Header.Add("Accept", "application/vnd.github.starfox-preview")
I tested this with setting it in
ctxhttp.go
, which is of course only good for testing. Where would be the right place to accomplish this? ThePost()
func inctxhttp.go
immediately returns the response with the execution ofDo()
. Thx!