mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
use '201 Created' when 'status' is 'downloaded'
This commit is contained in:
parent
f2dda3b939
commit
f088c27012
@ -91,7 +91,7 @@ module.exports = function(request, response, result) {
|
||||
} else {
|
||||
if (result.body) {
|
||||
headers.Etag = etag;
|
||||
response.writeHead(200, headers);
|
||||
response.writeHead(result.status === 2 ? 201 : 200, headers);
|
||||
} else {
|
||||
response.writeHead(404, headers);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user