1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-02-14 18:10: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)
write( "Connecting to pastebin.com... " )
local response = http.get(
"http://pastebin.com/raw/"..textutils.urlEncode( paste )
"https://pastebin.com/raw/"..textutils.urlEncode( paste )
)
if response then
@ -56,7 +56,7 @@ if sCommand == "put" then
write( "Connecting to pastebin.com... " )
local key = "0ec2eb25b6166c0c27a394ae118ad829"
local response = http.post(
"http://pastebin.com/api/api_post.php",
"https://pastebin.com/api/api_post.php",
"api_option=paste&"..
"api_dev_key="..key.."&"..
"api_paste_format=lua&"..