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

fix HTTPRequestUtils.getRequestHeaderMap #394

Open
wants to merge 4 commits into
base: 1.x
Choose a base branch
from
Open

Conversation

Kookey
Copy link

@Kookey Kookey commented Jan 9, 2018

fix HTTPRequestUtils.getRequestHeaderMap

@artgon
Copy link
Contributor

artgon commented Jan 9, 2018

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;
Copy link
Contributor

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 continues that way.

Copy link
Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this for?

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.

3 participants