Ticket #1232 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

loadURL (and OpenLayers.Ajax.Request) used to post application/xml by default

Reported by: tschaub Owned by:
Priority: blocker Milestone: 2.6 Release
Component: general Version: 2.5
Keywords: Cc:
State: Complete

Description

Though it's not immediately apparent to me why, before r5535 we used to POST application/xml by default. We now post application/x-www-form-urlencoded; charset=UTF-8. So, this is a regression.

Attachments

content-type.patch Download (485 bytes) - added by tschaub 5 years ago.
application-xml
ajax2_5.patch Download (0.5 KB) - added by tschaub 5 years ago.
match behavior at 2.5

Change History

Changed 5 years ago by tschaub

application-xml

Changed 5 years ago by tschaub

match behavior at 2.5

Changed 5 years ago by crschmidt

  • state set to Commit

Per discussion on IRC, go ahead and commit.

Changed 5 years ago by tschaub

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [5570]) Match XHR behavor at 2.5. The browser default content type is application/xml, so we set that as our default contentType option. Looks like there is no browser default for encoding, so we remove that. r=crschmidt (closes #1232)

Note: See TracTickets for help on using tickets.