twitter: temporary fix

we're aiming to automatically generate x-client-transaction-id header. due to a recent change on twitter backend, this header is now required. sadly, its not static, so would propably break again anytime soon
This commit is contained in:
stefanodvx 2025-04-26 19:50:30 +02:00
parent 1b7ed51060
commit a959807524
3 changed files with 4 additions and 3 deletions

View file

@ -33,6 +33,7 @@ func BuildAPIHeaders(cookies []*http.Cookie) map[string]string {
headers := map[string]string{
"authorization": "Bearer " + authToken,
"user-agent": util.ChromeUA,
"x-client-transaction-id": transactionID,
"x-twitter-auth-type": "OAuth2Session",
"x-twitter-client-language": "en",
"x-twitter-active-user": "yes",