Skip to content

Conversation

@tiswrt
Copy link
Contributor

@tiswrt tiswrt commented Mar 1, 2021

This PR was already made some time ago #34, but was rejected due to a missing test.

When using reply.etag() the etagOnSend hook uses the cache payload, instead of the response payload.

I have added a test that checks whether the correct payload is returned.

Checklist

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit b00d176 into fastify:master Mar 2, 2021
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.

4 participants