mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-24 05:10:43 +00:00
Replace json.NewEncoder.Encode with json.Marshal and w.Write. Add a Content-Length header to ensure the integrity and correctness of the response data. At the same time, error handling is enhanced to avoid potential coding failures.