headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.49k stars 160 forks source link

Print http request headers if DEBUG env var is set #20

Closed lalyos closed 9 years ago

lalyos commented 9 years ago

This helped me to track down #19

headzoo commented 9 years ago

This has been merged into the dev branch, which I'll most likely merge into the master branch later today. I did make one change though, and renamed the variable to SURF_DEBUG_HEADERS. If using environment variables is going to become a thing we might as well namespace them.