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

Copy user agent header from incoming request to fix issue #33 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f-ld
Copy link

@f-ld f-ld commented Sep 17, 2019

Propose solution for issue #33

@f-ld
Copy link
Author

f-ld commented Apr 10, 2020

Any updates? Is this project dead? This is a very simple change and in a couple of clicks it can be merged.

@justincmoy
Copy link

It looks like this can be solved without changes to this project. Something like:

wsp := &websocketproxy.WebSocketProxy{
    Director: func(incoming *http.Request, out http.Header) {
        if ua := incoming.Header.Get("User-Agent"); ua != "" {
		out.Add("User-Agent", ua)
	}
    },
}

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.

3 participants