[ 
https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217538#comment-13217538
 ] 

Patrick Mueller commented on CB-175:
------------------------------------

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

The problem is here: 
[NetworkRequest.coffee:123|https://github.com/apache/incubator-cordova-weinre/blob/master/weinre.web/modules/weinre/target/NetworkRequest.coffee#L123].

In addition, I just noticed there's a problem here: 
[NetworkRequest.coffee:131|https://github.com/apache/incubator-cordova-weinre/blob/master/weinre.web/modules/weinre/target/NetworkRequest.coffee#L131]
 - we should be pulling the Content-Length header as well, and setting it the 
{{expectedContentLength}} property.

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 value.

                
> error when XHR contentType is null
> ----------------------------------
>
>                 Key: CB-175
>                 URL: https://issues.apache.org/jira/browse/CB-175
>             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 
> http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> 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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to