From 78f012eba3954c7bedd05b98a3e8639dfa6125e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:06:16 +0900 Subject: [PATCH] fix runoob --- runoob/runoob.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runoob/runoob.go b/runoob/runoob.go index 4855f56..107358d 100644 --- a/runoob/runoob.go +++ b/runoob/runoob.go @@ -112,8 +112,8 @@ func (ro RunOOB) Run(code string, lang string, stdin string) (string, error) { header := http.Header{ "Content-Type": []string{"application/x-www-form-urlencoded; charset=UTF-8"}, - "Origin": []string{"https://c.runoob.com"}, - "Referer": []string{"https://c.runoob.com/"}, + "Origin": []string{"https://www.runoob.com"}, + "Referer": []string{"https://www.runoob.com/try/runcode.php?"}, "User-Agent": []string{web.RandUA()}, }