cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <>
Subject [jira] [Commented] (CB-1455) 'authorization: ...' instead of 'Authorization: ...' set in FileTransfer
Date Thu, 20 Feb 2014 18:40:23 GMT


Ian Clelland commented on CB-1455:

HTTP header fields *are* case-insensitive: (HTTP/1.0) (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:
>             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 it should be written with
capital letter:
> Authorization: Basic bmssOmZvbw==
> I bumped into this issue when trying to handle request generated by FileTransfer with

This message was sent by Atlassian JIRA

View raw message