Skip to content

Commit ab5d433

Browse files
committed
Updating readme
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
1 parent ebc76cf commit ab5d433

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
main
3-
scripts/*
3+
scripts/*
4+
custom-platforms-0.1.0

pkg/diffr/handler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ func handler(w http.ResponseWriter, r *http.Request) {
134134
// Execute the templates with the provided data
135135
err := tmpl.Execute(w, data)
136136
if err != nil {
137+
w.WriteHeader(http.StatusInternalServerError)
137138
http.Error(w, err.Error(), http.StatusInternalServerError)
138139
return
139140
}
141+
w.WriteHeader(http.StatusOK)
140142
}()
141143

142144
wg.Wait()

scripts/build.sh

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

3-
custom_package="diffr"
3+
custom_package=$1
44
if [[ -z "$custom_package" ]]; then
55
echo "Usage: $0 diffr [dir1/file1 dir2/file2]]"
66
exit 1

0 commit comments

Comments
 (0)