Skip to content

Commit 8778869

Browse files
committed
Ensure PHP default proxy override uses the real proxy port, not the default
1 parent 4ab29ad commit 8778869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overrides/path/prepend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
stream_context_set_default(
33
array(
4-
'http' => array('proxy' => 'localhost:8000')
4+
'http' => array('proxy' => str_replace('http://', '', getenv('HTTPS_PROXY')))
55
)
66
);
77

0 commit comments

Comments
 (0)