Browse Source

More debug output

Pat Lathem 2 years ago
parent
commit
8233b86cef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      browser/browser.go

+ 2 - 1
browser/browser.go

@@ -647,8 +647,9 @@ func (bow *Browser) buildRequest(method, url string, ref *url.URL, body io.Reade
 		req.Header.Set("Referer", ref.String())
 	}
 	if os.Getenv("SURF_DEBUG_HEADERS") != "" {
-		d, _ := httputil.DumpRequest(req, false)
+		d, _ := httputil.DumpRequest(req, true)
 		fmt.Fprintln(os.Stderr, "===== [DUMP] =====\n", string(d))
+		fmt.Fprintln(os.Stderr, "===== [END ] =====")
 	}
 
 	return req, nil