Skip to content

Commit a914f30

Browse files
committed
.
1 parent 40bddae commit a914f30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# DIRECTORY TO THE REPOSITORY
4-
REPOSITORY="./myRepository"
4+
REPOSITORY="../react-tutorials"
55

66
cd $REPOSITORY
77

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ http.createServer(function(req, res){
4040
console.log(buff.toString('utf-8'));
4141
});
4242

43-
var data = JSON.stringify({"success": true});
43+
44+
res.writeHead(400, {"Content-Type": "application/json"});
45+
46+
var data = JSON.stringify({"success": true});
4447
return res.end(data);
4548

4649
});

0 commit comments

Comments
 (0)