3 ms·
I mean the landing page of GitHub Copilot just shoves text unencoded into a urlencoded body, this is nothing new... const response = await fetch(`http://te
by taspeotis 3y ago
I mean the landing page of GitHub Copilot just shoves text unencoded into a urlencoded body, this is nothing new...
const response = await fetch(`http://text-processing.com/api/sentiment/`, {
method: "POST",
body: `text=${text}`,
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
});
- rany_ 3y agoAt least they can't be sued for false advertising. That's unfortunately commendable these days.
- earthboundkid 3y agoI find it kind of crazy that they haven’t fixed given how prominently it was called out. The Go example is wrong too. It doesn’t check the database call for a final error.
- teaearlgraycold 3y agoI think to avoid false advertising claims they are using actual outputs. And if the listed examples are doing their job (getting people to sign up) they won’t change them.