New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Throw errors when base URLs are specified incorrectly [WIP] #1692
base: main
Are you sure you want to change the base?
Conversation
Interesting failure. While It looks like Nock is concatenating the port onto the unbracketed IPv6 addresses, which seems less ideal:
I don't think this has a functional effect, though aesthetically it seems like we should put the brackets in there. It improves readability of the error messages. That requires a change in the way matching happens – we need to re-bracket A separate adjustment probably is needed to preserve backward compatibility of IPv6 recordings in the current format. |
this.port = null | ||
this.parsedUrl = {} | ||
} else { | ||
this.parsedUrl = new URL(basePath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ea75bca
to
2c8cb5f
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
@paulmelnikow would you like to finish up your work here? We can open it up to other contributors otherwise |
Closes #1061
Supersedes #1065
This is arguably a breaking change as it throws errors in cases where the previous code would no-op. How we consider it is related to the discussion in #1673.