1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-06-17 02:24:55 +00:00

fix whitespace

This commit is contained in:
Starbeamrainbowlabs 2020-04-18 12:37:07 +01:00
parent b1ebaaab61
commit 0622400d0c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 109 additions and 112 deletions

View file

@ -14,7 +14,7 @@ register_module([
* @apiPermission User
*
* @apiParam {bool} avatar Optional. If true then a special page to upload your avatar is displayed instead.
*/
*/
/**
* @api {post} ?action=upload Upload a file
@ -354,11 +354,8 @@ register_module([
$allheaders = getallheaders();
$allheaders = array_change_key_case($allheaders, CASE_LOWER);
if(!isset($allheaders["if-none-match"]))
{
header("etag: $preview_etag");
}
else
{
else {
if($allheaders["if-none-match"] === $preview_etag)
{
http_response_code(304);