Github user eiri commented on a diff in the pull request:
https://github.com/apache/couchdb-chttpd/pull/101#discussion_r53046685
--- Diff: src/chttpd_cors.erl ---
@@ -360,7 +399,7 @@ get_origin(Req) ->
undefined ->
undefined;
Origin ->
- ?l2b(to_lower(Origin))
+ ?l2b(Origin)
--- End diff --
> [If the value of the Origin header is not a case-sensitive match for any
of the values in list of origins do not set any additional headers and
terminate this set of steps.](https://www.w3.org/TR/cors/#resource-requests)
Ok, I agree here on removing to_lower.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---