Project

General

Profile

Revision 0b606c0d

ID0b606c0d87144a9bb703f6a38a14cab24bb07b14
Parent 75f01b13
Child 14a1655f

Added by Andreas Kohlbecker about 7 years ago

bugfix

View differences:

7.x/modules/cdm_dataportal/cdm_api/cdm_api.module
1737 1737
 */
1738 1738
function cdm_http_request($uri, $method = "GET", $data = NULL) {
1739 1739
  static $acceptLanguage = NULL;
1740
  $header = array();
1740 1741

  
1741 1742
  if (!$acceptLanguage) {
1742 1743
    if (function_exists('apache_request_headers')) {
......
1755 1756
    drupal_set_message('cdm_api.module#cdm_http_request() : unsupported HTTP request method ', 'error');
1756 1757
  }
1757 1758

  
1758
  if (empty($header) && _is_cdm_ws_uri($uri)) {
1759
  if (_is_cdm_ws_uri($uri)) {
1759 1760
    $header['Accept'] = 'application/json';
1760 1761
    $header['Accept-Language'] = $acceptLanguage;
1761 1762
    $header['Accept-Charset'] = 'UTF-8';

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)