mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Reduce the number of HTTP requests in the media handling
This commit is contained in:
parent
69345432e1
commit
e7d9c6c254
11 changed files with 207 additions and 89 deletions
|
@ -15,6 +15,9 @@ class HttpClientAccept
|
|||
/** @var string Default value for "Accept" header */
|
||||
public const DEFAULT = '*/*';
|
||||
|
||||
/** @var string Accept all types with a preferences of ActivityStream content */
|
||||
public const AS_DEFAULT = 'application/activity+json,application/ld+json; profile="https://www.w3.org/ns/activitystreams",*/*;q=0.9';
|
||||
|
||||
public const ATOM_XML = 'application/atom+xml,text/xml;q=0.9,*/*;q=0.8';
|
||||
public const FEED_XML = 'application/atom+xml,application/rss+xml;q=0.9,application/rdf+xml;q=0.8,text/xml;q=0.7,*/*;q=0.6';
|
||||
public const HTML = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue