Skip to content

Commit

Permalink
godslayerakp/http: a couple minor fixes (#1850)
Browse files Browse the repository at this point in the history
- Clarify that the form blocks are acting on multipart/form-data
 - Add application/x-www-form-urlencoded to mime type list
 - Move the most common types to the top of the mime type list
  • Loading branch information
GarboMuffin authored Jan 8, 2025
1 parent 6363089 commit c1fb0d9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions extensions/godslayerakp/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
{
opcode: "setBodyToForm",
blockType: BlockType.COMMAND,
text: Scratch.translate("set request body to a form"),
text: Scratch.translate("set request body to multipart form"),
},
{
opcode: "getFormProperty",
Expand All @@ -399,7 +399,7 @@
defaultValue: "name",
},
},
text: Scratch.translate("[name] in request form"),
text: Scratch.translate("[name] in multipart form"),
},
{
opcode: "setFormProperty",
Expand All @@ -414,7 +414,7 @@
defaultValue: "value",
},
},
text: Scratch.translate("set [name] to [value] in request form"),
text: Scratch.translate("set [name] to [value] in multipart form"),
},
{
opcode: "deleteFormProperty",
Expand All @@ -425,7 +425,7 @@
defaultValue: "name",
},
},
text: Scratch.translate("delete [name] from request form"),
text: Scratch.translate("delete [name] from multipart form"),
},
"---",
{
Expand Down Expand Up @@ -520,10 +520,11 @@
},
mimeType: {
items: [
"application/json",
"application/x-www-form-urlencoded",
"application/javascript",
"application/ogg",
"application/pdf",
"application/json",
"application/ld+json",
"application/xml",
"application/zip",
Expand Down

0 comments on commit c1fb0d9

Please sign in to comment.