Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Send X-Error-Format workaround on OAuth PUT too
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed Apr 18, 2011
1 parent 1b36e3c commit c925264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/systemeD/halcyon/connection/XMLConnection.as
Expand Up @@ -179,7 +179,8 @@ package net.systemeD.halcyon.connection {
urlReq.method = "POST";
if (xml) { urlReq.data = xml.toXMLString(); } else { urlReq.data = true; }
urlReq.contentType = "application/xml";
urlReq.requestHeaders = new Array(new URLRequestHeader("X_HTTP_METHOD_OVERRIDE", "PUT"));
urlReq.requestHeaders = [ new URLRequestHeader("X_HTTP_METHOD_OVERRIDE", "PUT"),
new URLRequestHeader("X-Error-Format", "XML") ];
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
Expand Down

0 comments on commit c925264

Please sign in to comment.