[SOLVED] Proper HTTP response for PNG

howdy,

I’ve been doing some work with backend java server programming (and progressive apps) and I have gotten to the point where I am deploying to Heroku. The problem is none of my icons are loading despite them loading in a local testing environment. Heroku is throwing an error code of H17 which I looked up and says that it has to do with the formatting of my HTTP response. The thing is my entire page loads perfectly except for the icons. I was wondering if anybody else has had an issue similar to this.

Http response format:


HTTP/1.1 200 OK
Content-Type: image/png
Connection: close

*raw image data*


this response works in a local environment (chrome: desktop and mobile)

full error


http_error="Invalid HTTP status line" 
at=error code=H17 
desc="Poorly formatted HTTP response" 
method=GET 
path="/img/icons/android-icon-36x36.png" 
host=*website* 
request_id=*id* 
fwd="*some ipv4 adress*" 
dyno=web.1 
connect=0ms service=2ms status=503 bytes=2482 protocol=https