mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Add "application/octet-stream" mime type for package
This commit is contained in:
@ -25,7 +25,8 @@ def validate_response(req):
|
|||||||
def validate_package(url):
|
def validate_package(url):
|
||||||
r = requests.head(url, allow_redirects=True)
|
r = requests.head(url, allow_redirects=True)
|
||||||
validate_response(r)
|
validate_response(r)
|
||||||
assert r.headers['Content-Type'] == "application/x-gzip"
|
assert r.headers['Content-Type'] in ("application/x-gzip",
|
||||||
|
"application/octet-stream")
|
||||||
|
|
||||||
|
|
||||||
def test_package(package_data):
|
def test_package(package_data):
|
||||||
|
Reference in New Issue
Block a user