Skip to content

support JSON.stringify() of request.info#4020

Merged
hueniverse merged 1 commit intohapijs:masterfrom
cjihrig:tojson
Jan 10, 2020
Merged

support JSON.stringify() of request.info#4020
hueniverse merged 1 commit intohapijs:masterfrom
cjihrig:tojson

Conversation

@cjihrig
Copy link
Copy Markdown
Contributor

@cjihrig cjihrig commented Jan 10, 2020

This commit adds a toJSON() method to the class used to create request.info. This ensures that request.info can be safely stringified in the presence of circular data structures.

Fixes: #4019

This commit adds a toJSON() method to the class used to create
request.info. This ensures that request.info can be safely
stringified in the presence of circular data structures.

Fixes: #4019
@hueniverse hueniverse self-assigned this Jan 10, 2020
@hueniverse hueniverse added the bug Bug or defect label Jan 10, 2020
@hueniverse hueniverse added this to the 19.0.2 milestone Jan 10, 2020
@hueniverse hueniverse merged commit f09101a into hapijs:master Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: custom toJSON() method for request.info

2 participants