Age | Commit message (Collapse) | Author |
|
data_rest responses, and check cache validity. Fixes #1909.
|
|
Moved the "if (TEST_MODE)" statement before the buffer calls in file_proxy and data_rest.
This has no impact on normal use, but will make the unit tests more compatible with different server/PHP configurations.
Note: We do not have to skip setting the headers, which means we can build unit tests around them if we wish.
|
|
|
|
clause that returns nothing when the album has no album cover - we'll
fail before that if the album's thumbnail is missing, and if it's not
missing then we'll have something to serve even if it's out of date.
|
|
Correct result: always "image/jpeg"
Old data_rest result: mime of cover item
Old file_proxy result: mime of album item (null)
|
|
documentation/formatting changes.
No actual functionality changed here.
|
|
|
|
|
|
Fixes #1400.
|
|
cover's mime type)
|
|
metadata and the data itself JSON encoded, we just send back the raw
data with the right Content-Type. This, combined with code in
Item_Model::as_restful_array() that swaps in /rest/data urls as
appropriate, means that the RESTful payload has consistent urls when
permissions are in play.
|
|
robust in the face of a missing data file (movies and albums lack
resize, albums lack full size, some albums don't have a thumb if they
have no contents, etc)
|
|
data_rest::put() altogether; it's no longer necessary.
|
|
contents of the file, which enables REST viewers to see the actual
data which is useful when the files are privileged. Currently it
returns the contents of the file in JSON encoded form, which may not
be the best. Multipart/mime might be much better.
Fixes ticket #1224.
|