Skip to content

Add comprehensive host test - #429

Merged
1 commit merged into
masterfrom
unknown repository
Sep 24, 2018
Merged

1 commit merged into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Sep 17, 2018

Copy link
Copy Markdown

Add table driven test for handling of host in request URL, request
header and TLS server name. In addition to testing various uses of host
names, this test also confirms that host names are handled the same as
the net/http client.

The new table driven test replaces TestDialTLS, TestDialTLSNoverify,
TestDialTLSBadCert and TestHostHeader.

Eliminate duplicated code for constructing root CA.

Add table driven test for handling of host in request URL, request
header and TLS server name. In addition to testing various uses of host
names, this test also confirms that host names are handled the same as
the net/http client.

The new table driven test replaces TestDialTLS, TestDialTLSNoverify,
TestDialTLSBadCert and TestHostHeader.

Eliminate duplicated code for constructing root CA.
@ghost

ghost commented Sep 23, 2018

Copy link
Copy Markdown
Author

Ping! Can somebody please review this?

@ghost
ghost merged commit cdd40f5 into gorilla:master Sep 24, 2018
@ghost ghost locked and limited conversation to collaborators Apr 19, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants