-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix HTTPRequestUtils.getRequestHeaderMap #394
base: 1.x
Are you sure you want to change the base?
Conversation
This looks good, but can you please add a test to exercise the different branches of logic there. |
while (values.hasMoreElements()){ | ||
Object value = values.nextElement(); | ||
if (value == null){ | ||
continue; |
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.
Instead of continuing, you can do the inverse of the if statement and add it then. It'll make the code more readable. You can replace all of the continue
s that way.
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.
yes,you are right
@@ -185,7 +185,7 @@ void initZuul() throws Exception, IllegalAccessException, InstantiationException | |||
|
|||
LOG.info("Starting Groovy Filter file manager"); | |||
final AbstractConfiguration config = ConfigurationManager.getConfigInstance(); | |||
|
|||
Thread.sleep(40000); |
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.
What is this for?
fix HTTPRequestUtils.getRequestHeaderMap