This commit is contained in:
2025-05-11 16:16:18 +01:00
parent e674043daa
commit 64879ac9d6

View File

@ -219,7 +219,7 @@ func main() {
fmt.Println(decodedIamge)
image = buf.Bytes()
} else if contentType == "application/oclet-stream" {
} else if contentType == "application/oclet-stream" || contentType == "image/png" {
bodyData, err := io.ReadAll(r.Body)
if err != nil {
log.Println(err)