|
Revision 10677, 0.8 kB
(checked in by fabien, 5 years ago)
|
[1.2] added a custom HTTP header when getting information for a plugin
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
require_once 'PEAR/REST.php'; |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
class sfPearRest extends PEAR_REST |
|---|
| 22 |
{ |
|---|
| 23 |
|
|---|
| 24 |
* @see PEAR_REST::downloadHttp() |
|---|
| 25 |
*/ |
|---|
| 26 |
public function downloadHttp($url, $lastmodified = null, $accept = false) |
|---|
| 27 |
{ |
|---|
| 28 |
return parent::downloadHttp($url, $lastmodified, array_merge(false !== $accept ? $accept : array(), array("\r\nX-SYMFONY-VERSION: ".SYMFONY_VERSION))); |
|---|
| 29 |
} |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|