Separate SCLA/UTSA ApplyHeaders helper methods

This commit is contained in:
2023-12-28 08:50:06 -06:00
parent ef7ca9f16e
commit 8e78128b1e
2 changed files with 10 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ func Unsubscribe(email string) (*ConfirmationResponse, error) {
request.Header.Set("Referer", "http://www2.thescla.org/UnsubscribePage.html?mkt_unsubscribe=1")
request.Header.Set("Content-Type", "application/x-www-form-urlencoded")
request.Header.Set("X-Requested-With", "XMLHttpRequest")
ApplyHeaders(request)
ApplySclaHeaders(request)
// Send request
response, body, err := DoRequest(request)