Skip to content

Minor fix.#314

Merged
ok2c merged 1 commit intoapache:masterfrom
arturobernalg:feature/typos_other
Oct 17, 2021
Merged

Minor fix.#314
ok2c merged 1 commit intoapache:masterfrom
arturobernalg:feature/typos_other

Conversation

@arturobernalg
Copy link
Copy Markdown
Member

@arturobernalg arturobernalg commented Oct 17, 2021

  • Fix javadoc typo.
  • Use java array declarations instead of "c" way.

private boolean from1_0Origin(final HttpResponse response) {
final Iterator<HeaderElement> it = MessageSupport.iterate(response, HeaderConstants.VIA);
while (it.hasNext()) {
if (it.hasNext()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Copy Markdown
Member Author

@arturobernalg arturobernalg Oct 17, 2021

Choose a reason for hiding this comment

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

because it doesn't iterate. in the best case it returns the protocol

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

because it doesn't iterate. in the best case it returns the protocol
@arturobernalg This is true but is it really worth it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@arturobernalg Especially mixed into a change-set that fixes typos.

* Use java array declarations instead of "c" way.
@arturobernalg
Copy link
Copy Markdown
Member Author

HI @ok2c @michael-o
Fair enough. Reverted the change of the iterator.
TY

@ok2c ok2c merged commit d9299be into apache:master Oct 17, 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.

3 participants