Skip to content
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

Ensure headers from wrapped server is forwarded appropriately #359

Merged

Conversation

danilvpetrov
Copy link
Contributor

@danilvpetrov danilvpetrov commented Feb 20, 2019

Fix #334.

This approach adds 'copyHeader' function with multiple options to address repeatable code in go/grpcweb/grpc_web_response.go file and header preparation when underlying gRPC service calls Write method on grpcWebResponse object.

The tests were copied from #339 originally done by @johanbrandhorst.

Danil Petrov added 2 commits February 20, 2019 08:57
@johanbrandhorst johanbrandhorst self-assigned this Feb 20, 2019
Copy link
Contributor

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

Fantastic work @danilvpetrov!

@johanbrandhorst
Copy link
Contributor

Rerunning the tests 🤔

@johanbrandhorst johanbrandhorst changed the title Improbable eng/grpc web#334 Ensure headers from wrapper server is forwarded appropriately Feb 20, 2019
@johanbrandhorst johanbrandhorst changed the title Ensure headers from wrapper server is forwarded appropriately Ensure headers from wrapped server is forwarded appropriately Feb 20, 2019
@johanbrandhorst johanbrandhorst merged commit 5d060c9 into improbable-eng:master Feb 20, 2019
@johanbrandhorst johanbrandhorst mentioned this pull request Feb 20, 2019
2 tasks
@danilvpetrov danilvpetrov deleted the improbable-eng/grpc-web#334 branch February 20, 2019 22:58
@danilvpetrov
Copy link
Contributor Author

danilvpetrov commented Feb 20, 2019

@johanbrandhorst thanks for all your help!

danilvpetrov pushed a commit to danilvpetrov/grpc-web that referenced this pull request Feb 21, 2019
This commit makes websocket_wrapper.go file consistent with the changes
in grpc_web_response.go file, PR improbable-eng#359.
johanbrandhorst pushed a commit that referenced this pull request Feb 21, 2019
This commit makes websocket_wrapper.go file consistent with the changes
in grpc_web_response.go file, PR #359.
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.

None yet

2 participants