8000 etag attribute on an iterator doesn't change · Issue #246 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content
etag attribute on an iterator doesn't change #246
Closed
@sigmavirus24

Description

@sigmavirus24

Test case:

g = github3.login('username', 'password')
i = g.iter_gists()
gists = list(i)
print(i.etag)
g.create_gist('Test', {'test': {'content': 'test'}}) 
i.refresh(True)
new_gists = list(i)
print(i.last_response.headers['ETag'])
print(i.etag)

The value of the ETag header returned is different from the attribute because the attribute retained its old value.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0