Ticket #2159: defaultproperty.patch
| File defaultproperty.patch, 0.6 kB (added by scott.gonzalez, 7 months ago) |
|---|
-
ajax.js
153 153 script: "text/javascript, application/javascript", 154 154 json: "application/json, text/javascript", 155 155 text: "text/plain", 156 default: "*/*"156 'default': "*/*" 157 157 } 158 158 }, 159 159 … … 287 287 // Set the Accepts header for the server, depending on the dataType 288 288 xml.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? 289 289 s.accepts[ s.dataType ] + ", */*" : 290 s.accepts .default);290 s.accepts['default'] ); 291 291 } catch(e){} 292 292 293 293 // Allow custom headers/mimetypes