1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-02-15 02:20:05 +00:00

Merge pull request #355 from MineRobber9000/patch-2

Make pastebin.lua use HTTPS
This commit is contained in:
Daniel Ratcliffe 2017-07-25 19:03:15 +01:00 committed by GitHub
commit f14a14f4c3

View File

@ -21,7 +21,7 @@ end
local function get(paste) local function get(paste)
write( "Connecting to pastebin.com... " ) write( "Connecting to pastebin.com... " )
local response = http.get( local response = http.get(
"http://pastebin.com/raw/"..textutils.urlEncode( paste ) "https://pastebin.com/raw/"..textutils.urlEncode( paste )
) )
if response then if response then
@ -56,7 +56,7 @@ if sCommand == "put" then
write( "Connecting to pastebin.com... " ) write( "Connecting to pastebin.com... " )
local key = "0ec2eb25b6166c0c27a394ae118ad829" local key = "0ec2eb25b6166c0c27a394ae118ad829"
local response = http.post( local response = http.post(
"http://pastebin.com/api/api_post.php", "https://pastebin.com/api/api_post.php",
"api_option=paste&".. "api_option=paste&"..
"api_dev_key="..key.."&".. "api_dev_key="..key.."&"..
"api_paste_format=lua&".. "api_paste_format=lua&"..