Skip to content

Commit 9bd00b0

Browse files
committed
Fixed composer
1 parent a4f1b55 commit 9bd00b0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ Content-Type | `Proxy::jsonp()`
174174
You can define another allowed content-type, example:
175175

176176
```php
177-
$proxy->addAllowedType('image/ico', true);
177+
$proxy->addAllowedType('image/x-icon', true);
178+
$proxy->addAllowedType('image/vnd.microsoft.icon', true);
178179
```
179180

180181
Second parameter of the method specifies whether the `Proxy::jsonp()` should use URL encoding or Base64 encoding in the data URI scheme.
@@ -253,7 +254,7 @@ $proxy->setDrivers([
253254
]);
254255

255256
$proxy->setTemporary('php://temp');
256-
$proxy->download($url);
257+
$proxy->download($url, true);
257258

258259
$errcode = $proxy->getLastErrorCode();
259260
$httpStatus = $proxy->getHttpStatus();

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@
1111
],
1212
"require": {
1313
"php": ">=5.4.0"
14+
},
15+
"autoload": {
16+
"psr-4": {
17+
"Inphinit\\Proxy\\": "src/"
18+
}
1419
}
1520
}

0 commit comments

Comments
 (0)