Skip to content

Allow setting etag header when sending update requests#25

Open
georaldc wants to merge 1 commit into
thephpleague:masterfrom
georaldc:add-etag-validation-for-updates
Open

Allow setting etag header when sending update requests#25
georaldc wants to merge 1 commit into
thephpleague:masterfrom
georaldc:add-etag-validation-for-updates

Conversation

@georaldc
Copy link
Copy Markdown

I noticed that writes allowed etags to be passed for data integrity checks, but not update/put methods. This should fix that.

@georaldc
Copy link
Copy Markdown
Author

Actually, now that I think about it, is there any reason why this adapter does not implement the CanOverwriteFiles interface? I haven't tested this yet, but I believe we can just use the write methods (which support passing headers just fine) to overwrite files if they already exist.

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.

2 participants