Commit 261df601 authored by guido's avatar guido

changes needed for riseup's production server

parent 72736021
{
"name": "apaste",
"version": "1.0.0",
"description": "Command-line client to the upload pastebin",
"version": "1.1.0",
"description": "Command-line client for riseup.net pastebin service",
"main": "upclient.js",
"preferGlobal": "true",
"bin": {
......
......@@ -124,12 +124,12 @@ function doUpload(data, name, type) {
var formdata = new FormData()
formdata.append('api_key', 'c61540b5ceecd05092799f936e27755f')
formdata.append('api_key', '59Mnk5nY6eCn4bi9GvfOXhMH54E7Bh6EMJXtyJfs')
formdata.append('ident', result.ident)
formdata.append('file', result.encrypted, {filename: 'file', contentType: 'text/plain'})
var req = https.request({
host: 'paste.antagonismo.org',
host: 'share.riseup.net',
port: 443,
path: '/up',
method: 'POST',
......@@ -149,7 +149,7 @@ function doUpload(data, name, type) {
data_out += chunk;
});
res.on('end', function() {
var res_url = "https://paste.antagonismo.org/#"+result.seed;
var res_url = "https://share.riseup.net/#"+result.seed;
console.log(res_url);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment