A minor change for ProviderDiscovery and spec (#3543)
* Do not default the format in ProviderDiscovery The format should be determined when discovering, as it is in the current implementation, and it is a flaw if it is not determined. * Spec ProviderDiscovery
This commit is contained in:
committed by
Eugen Rochko
parent
c7af8cbc90
commit
e674608d10
7
spec/fixtures/requests/oembed_invalid_xml.html
vendored
Normal file
7
spec/fixtures/requests/oembed_invalid_xml.html
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href=':' rel='alternate' type='application/xml+oembed'>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
7
spec/fixtures/requests/oembed_json.html
vendored
Normal file
7
spec/fixtures/requests/oembed_json.html
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='https://host/provider.json' rel='alternate' type='application/json+oembed'>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
8
spec/fixtures/requests/oembed_json_xml.html
vendored
Normal file
8
spec/fixtures/requests/oembed_json_xml.html
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='https://host/provider.json' rel='alternate' type='application/json+oembed'>
|
||||
<link href='https://host/provider.xml' rel='alternate' type='application/xml+oembed'>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
5
spec/fixtures/requests/oembed_undiscoverable.html
vendored
Normal file
5
spec/fixtures/requests/oembed_undiscoverable.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body></body>
|
||||
</html>
|
7
spec/fixtures/requests/oembed_xml.html
vendored
Normal file
7
spec/fixtures/requests/oembed_xml.html
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='https://host/provider.xml' rel='alternate' type='application/xml+oembed'>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
Reference in New Issue
Block a user