BOSH too picky about content-type with requests

Description

Date: Thu, 11 Nov 2010 04:03:52 -0800 (PST)
From: juulh009

Hello, i was wondering if there are other people who are facing
problems with strophe on ie8 with a openfire server. My IE and firefox
clients were sending almost the same stanza to request roster
information. The firefox client got a answer from the openfire server
but IE8 didn't get one (a 404 status). I decided to look at wireshark
to see the differences. Firefox sends a Content-Type: text/plain but
IE8 didn't which caused the openfire sever to answer the request with
a 404.

I've added this line of code in the Strophe library after line 2503:
req.xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");

After this everything worked fine.

My question is, is there a way to change this without modifying the
Strophe library javascript file?

Environment

IE8 Strophe

Activity

Show:
Daryl Herzmann
February 17, 2014, 11:50 AM

Closing, we can always reopen if somebody notes that they are reproducing it.

csh
February 16, 2014, 8:39 PM

I can't reproduce this with 3.9.1 (and probably 3.8.2 works as well).

I've sent no Content-Type in the HTTP header and checked, that Openfire's HttpBindServlet indeed got no Content-Type. But nonetheless, the BOSH connection worked.
It also worked with another content-type, like "application/x-www-form-urlencoded".

So, is this still an issue?

Guus der Kinderen
February 6, 2013, 7:57 PM

Removing the 'fix version' for all unresolved issues that were scheduled for version 7.8.2. We're releasing this version today - the remaining issues should be rescheduled later.

Neustradamus
November 13, 2012, 1:52 PM

fixed in 3.7.2?

Cannot Reproduce

Assignee

Guus der Kinderen

Reporter

Daryl Herzmann