Skip to content

Commit

Permalink
Remove unnecessary forward slash, commas, and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
differentmatt committed Jun 4, 2018
1 parent f8cce30 commit 37f449f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions server/routes/file.coffee
Expand Up @@ -218,7 +218,7 @@ clearCloudFlareCacheForFile = (path='/file') ->

request = require 'request'

cloudflareAPIV4 = "https://api.cloudflare.com/client/v4/"
cloudflareAPIV4 = "https://api.cloudflare.com/client/v4"
cloudflareZoneIdentifier = "2288a1f5dc397aac278e76f657a3c5ec"
cloudflareAPIURL = "#{cloudflareAPIV4}/zones/#{cloudflareZoneIdentifier}/purge_cache"
options =
Expand All @@ -227,9 +227,9 @@ clearCloudFlareCacheForFile = (path='/file') ->
body:
"files": ["http://codecombat.com#{path}"]
headers:
'X-Auth-Email': config.cloudflare.email,
'X-Auth-Key': config.cloudflare.token,
'X-Auth-Email': config.cloudflare.email
'X-Auth-Key': config.cloudflare.token
'Content-Type': 'application/json'
request.post options, (err, httpResponse, body) ->
if (err)
console.error('CloudFlare file cache clear failed:', body)
console.error('CloudFlare file cache clear failed:', body)
2 changes: 1 addition & 1 deletion server_config.coffee
Expand Up @@ -20,7 +20,7 @@ config.port = process.env.COCO_PORT or process.env.COCO_NODE_PORT or process.env
config.ssl_port = process.env.COCO_SSL_PORT or process.env.COCO_SSL_NODE_PORT or 3443
config.cloudflare =
token: process.env.COCO_CLOUDFLARE_API_KEY or ''
email: process.env.COCO_CLOUDFLARE_API_EMAIL or '' # added to bob env.txt, do we also need to add to env-dual-ls-write.txt and t.txt in bob (these files not being used anywhere)
email: process.env.COCO_CLOUDFLARE_API_EMAIL or ''

config.github =
client_id: process.env.COCO_GITHUB_CLIENT_ID or 'fd5c9d34eb171131bc87'
Expand Down

0 comments on commit 37f449f

Please sign in to comment.