Skip to content

remove prefix 'W/"' from _rev - #43

Merged
nickpell merged 4 commits into
jsonobjectfrom
np/fix-get_rev
Jul 12, 2018
Merged

remove prefix 'W/"' from _rev#43
nickpell merged 4 commits into
jsonobjectfrom
np/fix-get_rev

Conversation

@nickpell

@nickpell nickpell commented Jul 11, 2018

Copy link
Copy Markdown
Contributor

@nickpell
nickpell requested a review from emord July 11, 2018 20:42
Comment thread couchdbkit/client.py Outdated
raise ResourceNotFound
raise
return response.headers['ETag'].strip('"')
return response.headers['ETag'].strip('"').strip('W/"')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the W/" coming from?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never figured out exactly where. I assume that the cloudant api sends a slightly different request.

Nick Pellegrino added 2 commits July 12, 2018 13:29
@nickpell
nickpell merged commit 9e1b698 into jsonobject Jul 12, 2018
@nickpell
nickpell deleted the np/fix-get_rev branch July 12, 2018 17:38
@snopoke

snopoke commented Jul 12, 2018

Copy link
Copy Markdown
Contributor

Interesting that couch returns a weak etag

@emord

emord commented Jul 12, 2018

Copy link
Copy Markdown
Contributor

@snopoke yeah. it's weird and looks like it only happens on our self hosted instances. I quickly looked through the couch docs, but didn't see anywhere that that could be changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants