X Tutup
Skip to content

Fixed case-sensitiveness in metadata headers detection#64

Merged
olivergondza merged 1 commit intoopenstack4j:masterfrom
bdevost:swift-metadata-case
Jul 23, 2020
Merged

Fixed case-sensitiveness in metadata headers detection#64
olivergondza merged 1 commit intoopenstack4j:masterfrom
bdevost:swift-metadata-case

Conversation

@bdevost
Copy link
Copy Markdown
Contributor

@bdevost bdevost commented Jun 26, 2020

I am facing issue with reverse proxies forcing header names to lowercase to enforce HTTP/2.0 compliance. After referring to the RFC documentation for 1.1 (https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2), I realized that even at that standard, Header field names should be case-insensitive.

As a result, I forced the field name into lower-case for comparison (indexOf being case-sensitive) and added some unit tests to validate the behavior.

  • Fixed case-sensitiveness in Swift metadata headers detection
  • Added tests for MapWithoutMetaPrefixFunction.java

* Fixed case-sensitiveness in metadata headers detection
@olivergondza
Copy link
Copy Markdown
Member

Thanks! Is this the only place in the codebase with such problem, or the only one you have run into?

@bdevost
Copy link
Copy Markdown
Contributor Author

bdevost commented Jul 16, 2020

Only place where I faced the issue while implementing the API.

There might be other places - if there are, I will probably create new pull requests.

@olivergondza olivergondza merged commit e6b0679 into openstack4j:master Jul 23, 2020
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.

2 participants

X Tutup