Skip to content

Instantly share code, notes, and snippets.

@sjlu
Created August 4, 2016 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjlu/efa7152fc13219bf01d357e195e3acaf to your computer and use it in GitHub Desktop.
Save sjlu/efa7152fc13219bf01d357e195e3acaf to your computer and use it in GitHub Desktop.
return request({
method: 'POST',
url: 'https://api.fastly.com/service/' + main.SERVICE_ID + '/version/' + this.number + '/vcl',
headers: {
'Fastly-Key': main.API_KEY
},
form: {
name: 'gulp-fastly-uploaded-vcl',
file: encodeURIComponent(String(file.contents))
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment