incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-175) error when XHR contentType is null
Date Mon, 27 Feb 2012 20:38:46 GMT


Patrick Mueller commented on CB-175:

No, doesn't look like it's fixed yet.

The problem is here: [|].

In addition, I just noticed there's a problem here: [|]
- we should be pulling the Content-Length header as well, and setting it the {{expectedContentLength}}

In the case of Content-Type, I think if there isn't one provided, we should default to something
- and I'm thinking {{application/octet-stream}} or {{text/plain}}, leaning towards the first.

In the case of Content-Length, I think the first thing to try is to not set the {{expectedContentLength}}
property at all, but we'll need to make sure the client can survive without it.  Given that
it's currently being set to the Content-Type, the client can clearly tolerate a non-numeric

> error when XHR contentType is null
> ----------------------------------
>                 Key: CB-175
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: weinre
>            Reporter: Olivier Louvignes
>            Assignee: Patrick Mueller
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType'
[null] is not an object. at
> and does not get any more log (only errors), app works & i get logs in eclipse logcat
without weinre correctly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message