Skip to content

Commit 8a3d602

Browse files
committed
fixed typo in headers example
1 parent dc08c3f commit 8a3d602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ http_client.headers.update({"Accept-Encoding": "gzip, deflate"})
355355
# set path to CA_BUNDLE file
356356
http_client.verify = "/path/to/certfile"
357357

358-
ytt_api = YouTubeTranscriptApi(http_client=session)
358+
ytt_api = YouTubeTranscriptApi(http_client=http_client)
359359
ytt_api.fetch(video_id)
360360

361361
# share same Session between two instances of YouTubeTranscriptApi
362-
ytt_api_2 = YouTubeTranscriptApi(http_client=session)
362+
ytt_api_2 = YouTubeTranscriptApi(http_client=http_client)
363363
# now shares cookies with ytt_api
364364
ytt_api_2.fetch(video_id)
365365
```

0 commit comments

Comments
 (0)