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
Web: get real ip (on proxy use) #89
Conversation
I think this is fine :) 👍 |
Why don't you add a
instead of that ungeneric global change.... :( |
@spnaceone I like your idea here; (btw: let's keep things positive?). I think we should be moving forward more into this loosely coupled design with circuits.web itself and improve more of the design to be more flexible like this. It is circuits afterall and meant to be completely event-driven and component architectures! @treemo Would something like |
sorry, for ranting when seeing commits i don't like |
It's quite okay :) I think it's important to keep an open mind though and keep communications flowing positively :) I do agree with you and I think your idea of splitting this out into a separate component is a great idea! TBQH when I originally wrote/designed circuits.web I cobbled together pieces of cherrypy, basehttpserver and a few other things. It could be a lot better and more in-line with the "circuits" way so to speak :) However; that being said -- I strongly believe we can achieve a better design without necessarily breaking large parts of the higher level API :) |
Awesome work guys :) 👍 |
|
|
|
|
@@ -13,6 +13,8 @@ | |||
from email.utils import formatdate | |||
from datetime import datetime, timedelta | |||
from email.generator import _make_boundary | |||
from circuits import BaseComponent, handler | |||
from circuits.web.wrappers import Host |
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.
Move these imports down; we like to separate imports:
std lib imports
3rd party imports
local imports
@treemo Don't you want to short circuit this and reutrn on the first header found? |
I'm proposing this slight change:
Thoughts? |
If this works for you let's merge it :) 👍 |
it's ok on my server :) |
Merged :) but I don't know wtf I did! |
No description provided.