Code Review
/
icn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update golang version in bpa-restapi-agent
[icn.git]
/
cmd
/
bpa-restapi-agent
/
api
/
imagehandler.go
diff --git
a/cmd/bpa-restapi-agent/api/imagehandler.go
b/cmd/bpa-restapi-agent/api/imagehandler.go
index
2b68d6e
..
5fbf830
100644
(file)
--- a/
cmd/bpa-restapi-agent/api/imagehandler.go
+++ b/
cmd/bpa-restapi-agent/api/imagehandler.go
@@
-255,7
+255,7
@@
func (h imageHandler) patchHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
w.WriteHeader(http.StatusInternalServerError)
return
}
- f, err := os.OpenFile(fp, os.O_
APPEND|os.O_
WRONLY, 0644)
+ f, err := os.OpenFile(fp, os.O_WRONLY, 0644)
if err != nil {
log.Printf("unable to open file %s\n", err)
w.WriteHeader(http.StatusInternalServerError)
if err != nil {
log.Printf("unable to open file %s\n", err)
w.WriteHeader(http.StatusInternalServerError)