Skip to content

Commit

Permalink
examples formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
anytizer committed Sep 10, 2019
1 parent f285a98 commit fe6c1a8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/cs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
var result = streamReader.ReadToEnd();
}
}
2 changes: 1 addition & 1 deletion examples/go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ if err != nil {
panic(err)
}

defer resp.Body.Close()
defer resp.Body.Close()
2 changes: 1 addition & 1 deletion examples/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $.ajax({
success: function (data) {
console.log("done.");
}
});
});
10 changes: 5 additions & 5 deletions examples/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ const https = require("https");

const data = JSON.stringify({
name: "John"
})
});

const options = {
hostname: "hookb.in",
port: 443,
path: "/xxxxxxxxxxxxxx",
method: "POST",
headers: {
"Content-Type": "application/json",
"Content-Length": data.length
"Content-Type": "application/json",
"Content-Length": data.length
}
}
};

const req = https.request(options, (res) => {
console.log(`status: ${res.statusCode}`);
});

req.write(data);
req.end();
req.end();
2 changes: 1 addition & 1 deletion examples/pearl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
$req->content($data);

my $lwp = LWP::UserAgent->new;
$lwp->request($req);
$lwp->request($req);
2 changes: 1 addition & 1 deletion examples/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"name": "John"
}

r = requests.post(url, verify=False, json=data)
r = requests.post(url, verify=False, json=data)
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

res = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(req)
end
end
4 changes: 2 additions & 2 deletions examples/vanila.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ xhr.onreadystatechange = function () {
}
};

var data = JSON.stringify({
const data = JSON.stringify({
"name": "John"
});

xhr.send(data);
xhr.send(data);

0 comments on commit fe6c1a8

Please sign in to comment.