File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,8 @@ Content-Type | `Proxy::jsonp()`
174
174
You can define another allowed content-type, example:
175
175
176
176
``` php
177
- $proxy->addAllowedType('image/ico', true);
177
+ $proxy->addAllowedType('image/x-icon', true);
178
+ $proxy->addAllowedType('image/vnd.microsoft.icon', true);
178
179
```
179
180
180
181
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([
253
254
]);
254
255
255
256
$proxy->setTemporary('php://temp');
256
- $proxy->download($url);
257
+ $proxy->download($url, true );
257
258
258
259
$errcode = $proxy->getLastErrorCode();
259
260
$httpStatus = $proxy->getHttpStatus();
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " >=5.4.0"
14
+ },
15
+ "autoload" : {
16
+ "psr-4" : {
17
+ "Inphinit\\ Proxy\\ " : " src/"
18
+ }
14
19
}
15
20
}
You can’t perform that action at this time.
0 commit comments