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

changes to not use headers #3071 #3073

Merged
merged 8 commits into from
Sep 1, 2015
Merged

changes to not use headers #3071 #3073

merged 8 commits into from
Sep 1, 2015

Conversation

myleshorton
Copy link
Contributor

No description provided.

@myleshorton
Copy link
Contributor Author

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("/(.*)/(.*)/(.*)")
Copy link
Contributor Author

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("/(.*)/(.*)/(.*)/")
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK done!

fffw added a commit that referenced this pull request Sep 1, 2015
changes to not use headers #3071
@fffw fffw merged commit 0ce1cd3 into release-2.0.1 Sep 1, 2015
@fffw fffw deleted the issue3071 branch September 1, 2015 18:07
@getlantern getlantern deleted a comment from myleshorton Mar 3, 2021
@getlantern getlantern deleted a comment from fffw Mar 3, 2021
@getlantern getlantern deleted a comment from fffw Mar 3, 2021
@getlantern getlantern deleted a comment from fffw Mar 3, 2021
@getlantern getlantern deleted a comment from fffw Mar 3, 2021
@getlantern getlantern deleted a comment from fffw Mar 3, 2021
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.

2 participants