Skip to content

Commit

Permalink
Remove host header
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev03 committed Nov 4, 2023
1 parent 6079a31 commit b9beb10
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/ScratchSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class ScratchSession {
Cookie: cookieSet,
"User-Agent": UserAgent,
Referer: "https://scratch.mit.edu/",
Host: "scratch.mit.edu",
"Cache-Control": "max-age=0, no-cache",
"X-Requested-With": "XMLHttpRequest",
Pragma: "no-cache",
Expand Down Expand Up @@ -161,7 +160,6 @@ class ScratchSession {
Cookie: this.auth.cookieSet,
"User-Agent": UserAgent,
Referer: "https://scratch.mit.edu/",
Host: "assets.scratch.mit.edu",
"Cache-Control": "no-cache",
Pragma: "no-cache",
Accept: "*/*",
Expand Down Expand Up @@ -262,7 +260,6 @@ class ScratchSession {
accept: "application/json",
Referer: "https://scratch.mit.edu/",
Origin: "https://scratch.mit.edu",
Host: "scratch.mit.edu",
"Content-Type": "application/x-www-form-urlencoded",
Accept: "*/*",
"Accept-Encoding": "gzip, deflate, br"
Expand Down
4 changes: 0 additions & 4 deletions src/classes/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ class Project {
Accept: "application/json",
"Accept-Language": "en, en;q=0.8",
Origin: "https://scratch.mit.edu",
Host: "api.scratch.mit.edu",
"Cache-Control": "no-cache",
Pragma: "no-cache",
Connection: "keep-alive",
Expand Down Expand Up @@ -438,7 +437,6 @@ class Project {
Accept: "*/*",
"Content-Length": "0",
Origin: "https://scratch.mit.edu",
Host: "api.scratch.mit.edu",
"Cache-Control": "max-age=0, no-cache",
Pragma: "no-cache",
"Accept-Encoding": "gzip, deflate, br"
Expand Down Expand Up @@ -471,7 +469,6 @@ class Project {
Accept: "*/*",
"Content-Length": "0",
Origin: "https://scratch.mit.edu",
Host: "api.scratch.mit.edu",
"Cache-Control": "max-age=0, no-cache",
Pragma: "no-cache",
"Accept-Encoding": "gzip, deflate, br"
Expand Down Expand Up @@ -503,7 +500,6 @@ class Project {
"Content-Type": "application/json",
"Content-Length": "0",
Origin: "https://scratch.mit.edu",
Host: "api.scratch.mit.edu",
"Cache-Control": "max-age=0, no-cache",
Pragma: "no-cache",
"Accept-Encoding": "gzip, deflate, br"
Expand Down
1 change: 0 additions & 1 deletion src/classes/Studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ class Studio {
Accept: "application/json",
"Accept-Language": "en, en;q=0.8",
Origin: "https://scratch.mit.edu",
Host: "api.scratch.mit.edu",
"Cache-Control": "no-cache",
Pragma: "no-cache",
Connection: "keep-alive",
Expand Down
1 change: 0 additions & 1 deletion src/classes/forums/Forum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class Forum {
"Accept-Encoding": "gzip, deflate, br",
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
Host: "scratch.mit.edu",
Origin: "https://scratch.mit.edu",
Referer: `https://scratch.mit.edu/discuss/settings/${this.session.auth.sessionJSON.user.username}/`
},
Expand Down
1 change: 0 additions & 1 deletion src/classes/forums/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class Post {
"Accept-Encoding": "gzip, deflate, br",
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
Host: "scratch.mit.edu",
Origin: "https://scratch.mit.edu",
Referer: `https://scratch.mit.edu/discuss/post/${this.id}/edit/`
},
Expand Down
3 changes: 0 additions & 3 deletions src/classes/forums/Topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ class Topic {
"Accept-Encoding": "gzip, deflate, br",
"Cache-Control": "no-cache",
"Content-Type": encoder.contentType,
Host: "scratch.mit.edu",
Origin: "https://scratch.mit.edu",
Referer: `https://scratch.mit.edu/discuss/topic/${this.id}/`
}
Expand Down Expand Up @@ -166,7 +165,6 @@ class Topic {
"Accept-Encoding": "gzip, deflate, br",
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
Host: "scratch.mit.edu",
Origin: "https://scratch.mit.edu",
Referer: `https://scratch.mit.edu/discuss/topic/${this.id}/`
}
Expand Down Expand Up @@ -196,7 +194,6 @@ class Topic {
"Accept-Encoding": "gzip, deflate, br",
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
Host: "scratch.mit.edu",
Origin: "https://scratch.mit.edu",
Referer: `https://scratch.mit.edu/discuss/topic/${this.id}/`
}
Expand Down

0 comments on commit b9beb10

Please sign in to comment.