Development

Changeset 10677

You must first sign up to be able to contribute.

Changeset 10677

Show
Ignore:
Timestamp:
08/05/08 21:11:48 (5 months ago)
Author:
fabien
Message:

[1.2] added a custom HTTP header when getting information for a plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/plugin/sfPearRest.class.php

    r5250 r10677  
    2626  public function downloadHttp($url, $lastmodified = null, $accept = false) 
    2727  { 
    28     return parent::downloadHttp($url, $lastmodified, $accept); 
     28    return parent::downloadHttp($url, $lastmodified, array_merge(false !== $accept ? $accept : array(), array("\r\nX-SYMFONY-VERSION: ".SYMFONY_VERSION))); 
    2929  } 
    3030}