-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
changes to not use headers #3071 #3073
Conversation
Here are the enproxy changes @aranhoide |
// If it's a reasonably long path, it likely follows our new request URI format: | ||
// /X-Enproxy-Id/X-Enproxy-Dest-Addr/X-Enproxy-Op | ||
if len(path) > 5 { | ||
r, err := regexp.Compile("/(.*)/(.*)/(.*)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey yeah I was just fixing that too -- good catch! I did a little refactoring too.
@@ -128,6 +129,40 @@ func (p *Proxy) Serve(l net.Listener) error { | |||
return httpServer.Serve(l) | |||
} | |||
|
|||
func (p *Proxy) parseRequestPath(path string) (string, string, string, error) { | |||
log.Debugf("Path is %v", path) | |||
r, err := regexp.Compile("/(.*)/(.*)/(.*)/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed -- will make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK done!
No description provided.