|
|
@ -239,9 +239,18 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
|
|
|
|
request.Header.Set("User-Agent", "")
|
|
|
|
request.Header.Set("User-Agent", "")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ctx = session.ContextWithContent(ctx, &session.Content{
|
|
|
|
content := &session.Content{
|
|
|
|
Protocol: "http/1.1",
|
|
|
|
Protocol: "http/1.1",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
content.SetAttribute(":method", request.Method)
|
|
|
|
|
|
|
|
content.SetAttribute(":path", request.URL.Path)
|
|
|
|
|
|
|
|
for key := range request.Header {
|
|
|
|
|
|
|
|
value := request.Header.Get(key)
|
|
|
|
|
|
|
|
content.SetAttribute(strings.ToLower(key), value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ctx = session.ContextWithContent(ctx, content)
|
|
|
|
|
|
|
|
|
|
|
|
link, err := dispatcher.Dispatch(ctx, dest)
|
|
|
|
link, err := dispatcher.Dispatch(ctx, dest)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|