[
https://issues.apache.org/jira/browse/CB-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907293#comment-13907293
]
Ian Clelland commented on CB-1455:
----------------------------------
HTTP header fields *are* case-insensitive:
http://tools.ietf.org/html/rfc1945#section-4.2 (HTTP/1.0)
http://tools.ietf.org/html/rfc2616#section-4.2 (HTTP/1.1)
If this is true, it is definitely a bug in ZendFramework. (And it may be;
{{library/Zend/Http/Headers.php}} doesn't appear to do any case normalization
of header names, and {{library/Zend/Authentication/Adapter/Http.php}} appears
to be doing an array lookup for "Authorization", but that's an issue for a
different bug tracker)
Regardless, the change is a trivial one. "Be conservative in what you send, be
liberal in what you accept" and all that.
> 'authorization: ...' instead of 'Authorization: ...' set in FileTransfer
> ------------------------------------------------------------------------
>
> Key: CB-1455
> URL: https://issues.apache.org/jira/browse/CB-1455
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin File Transfer
> Affects Versions: 2.0.0
> Environment: Android
> Reporter: Natalia Bartol
> Assignee: Ian Clelland
> Priority: Trivial
>
> Setting
> params.headers = {'Authorization' : make_base_auth()};
> for FileTransfer results in the request header:
> authorization: Basic bmssOmZvbw==
> According to http://tools.ietf.org/html/rfc1945#section-10.2 it should be
> written with capital letter:
> Authorization: Basic bmssOmZvbw==
> I bumped into this issue when trying to handle request generated by
> FileTransfer with ZendFramework2.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)