Changeset 12694
- Timestamp:
- Dec 5, 2011, 10:09:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/ws.php
r12651 r12694 508 508 add_event_handler('ws_invoke_allowed', 'ws_isInvokeAllowed', EVENT_HANDLER_PRIORITY_NEUTRAL, 3); 509 509 510 $requestFormat = null;510 $requestFormat = 'rest'; 511 511 $responseFormat = null; 512 512 … … 514 514 { 515 515 $responseFormat = $_GET['format']; 516 }517 518 if ( isset($HTTP_RAW_POST_DATA) )519 {520 $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);521 if ( strncmp($HTTP_RAW_POST_DATA, '<?xml', 5) == 0 )522 {523 }524 else525 {526 $requestFormat = "json";527 }528 }529 else530 {531 $requestFormat = "rest";532 516 } 533 517
Note: See TracChangeset
for help on using the changeset viewer.