The attodo.app, uhh... app.

service worker fix 2, i think

+2 -3
+2 -3
internal/handlers/settings.go
··· 220 220 return nil, err 221 221 } 222 222 223 - req.Header.Set("Authorization", "Bearer "+sess.AccessToken) 224 - 223 + // DPoP transport handles authorization automatically - do not set Authorization header manually 225 224 transport := bskyoauth.NewDPoPTransport(http.DefaultTransport, sess.DPoPKey, sess.AccessToken, sess.DPoPNonce) 226 225 client := &http.Client{ 227 226 Transport: transport, ··· 282 281 return fmt.Errorf("failed to create request: %w", err) 283 282 } 284 283 285 - req.Header.Set("Authorization", "Bearer "+sess.AccessToken) 286 284 req.Header.Set("Content-Type", "application/json") 285 + // DPoP transport handles authorization automatically - do not set Authorization header manually 287 286 288 287 transport := bskyoauth.NewDPoPTransport(http.DefaultTransport, sess.DPoPKey, sess.AccessToken, sess.DPoPNonce) 289 288 client := &http.Client{