Skip to content

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

Open
f-ld wants to merge 1 commit into
koding:masterfrom
f-ld:fix/issue_33
Open

Copy user agent header from incoming request to fix issue #33#34
f-ld wants to merge 1 commit into
koding:masterfrom
f-ld:fix/issue_33

Conversation

@f-ld

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

Copy link
Copy Markdown

Propose solution for issue #33

@f-ld

f-ld commented Apr 10, 2020

Copy link
Copy Markdown
Author

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
Copy Markdown

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