File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55 */
66class Mage42_PostcodeNL_Helper_Data extends Mage_Core_Helper_Abstract
77{
8+ /** @var string This should be updated when tagging a new version of the plugin */
9+ const PLUGIN_VERSION = '1.0.1 ' ;
810 const SESSION_HEADER_KEY = 'X-Autocomplete-Session ' ;
911 const API_TIMEOUT = 3 ;
1012 const ACCOUNT_URL = 'https://api.postcode.nl ' ;
11- const API_VERSION = 'v1 ' ;
1213
1314 protected $ _curlHandler ;
1415 protected $ _mostRecentResponseHeaders = [];
@@ -39,7 +40,7 @@ public function __construct()
3940 curl_setopt ($ this ->_curlHandler , CURLOPT_RETURNTRANSFER , true );
4041 curl_setopt ($ this ->_curlHandler , CURLOPT_CONNECTTIMEOUT , self ::API_TIMEOUT );
4142 curl_setopt ($ this ->_curlHandler , CURLOPT_TIMEOUT , self ::API_TIMEOUT );
42- curl_setopt ($ this ->_curlHandler , CURLOPT_USERAGENT , static ::class . '/ ' . static ::API_VERSION . ' PHP/ ' . PHP_VERSION );
43+ curl_setopt ($ this ->_curlHandler , CURLOPT_USERAGENT , static ::class . '/ ' . static ::PLUGIN_VERSION . ' PHP/ ' . PHP_VERSION );
4344
4445 if (isset ($ _SERVER ['HTTP_REFERER ' ]))
4546 curl_setopt ($ this ->_curlHandler , CURLOPT_REFERER , $ _SERVER ['HTTP_REFERER ' ]);
You can’t perform that action at this time.
0 commit comments