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
User Agent and babun check issues #139
Conversation
Awesome! Could you make two small fixes and resubmit?:
Thanks! |
Sure. I will get to it later tonight. |
I looked a bit into your code and found something interesting. |
Ok - perfect. Please have a look. |
… to ignore user agent set in .bashrc
Ok. So it seems my proxy had issues with that specific user agent ;) Do we have some tests for this?
If this has set user agent instead of variable then settings from .babunrc are ignored. And this should return our set agent. (a bit messy but works).
Pact works. |
Aha - but when you change .babunrc you have to execute source .babunrc, then it sohuld work. The same if you restart babun. Do you agree? |
Nope. Even after restart variable is not read.
As i understand the issue goes like that:
|
I see the problem - it's a chicken-egg problem. Thanks for your engagement in other tickets as well - it's awesome! |
So now it won't evaluate USER_AGENT in alias till you execute it. I don't see other aliases in babun.rc that might be affected. |
Ah, yes, that's great! - I've learnt something new 👍 |
So you've also checked that the user agent will be used by pact as well? |
It works in pact because it evaluates USER_AGENT in the script and adds to wget calls manually. |
You want me to check something else? |
No, your changes are perfect. I think we need the insecure option here as well: Actually, I have one question: |
Yep. Looks like my cntlm user agent was doing work for me ;) |
Merged manually, due to conflicts, but your commits are there -thx! |
Yey first pull request ;) Glad to be of service |
Hi
This is a fix for issue #138
I also took liberty of adding vim temp files to .gitignore.
I don't know if this is a best solution. It is something like a duct-tape fix more than anything.
But this helps when working behind draconian proxy.
Best regards
Dominik