From ed32b7d893da101332d3bb202d17b1bf89e5d9ed Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 20 Mar 2020 10:49:13 +0100 Subject: [PATCH] Change EU API request to HTTPS HTTP is no longer supported --- vat_moss/id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vat_moss/id.py b/vat_moss/id.py index 9316940..ffb8894 100644 --- a/vat_moss/id.py +++ b/vat_moss/id.py @@ -197,7 +197,7 @@ def validate(vat_id): ''' % (country_prefix, number) - request = Request('http://ec.europa.eu/taxation_customs/vies/services/checkVatService') + request = Request('https://ec.europa.eu/taxation_customs/vies/services/checkVatService') request.add_header('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8') try: