Skip to content

reply.entity() will always return null for correct etags #3427

@dypsilon

Description

@dypsilon

The test fixture in test/reply.js is not correct because a valid etag looks like this:

server.inject({ url: '/', headers: { 'if-none-match': '"abc"' } })

Please note the quotes around abc. Particularly this is how the browsers send them. If you change this line to a correct etag the count will always be 2 and the test will fail.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions