walkap / web-server

Internet and Web project
0 stars 0 forks source link

Get the right path of the image #7

Closed robertocapannelli closed 6 years ago

robertocapannelli commented 6 years ago

https://github.com/walkap/web-server/blob/fb91a8eaf98fb886b05b925edadd35f9deb1d73c/http_parsing/response_setter.c#L181

We should get the right path to the image based on our project structure (/www/images/image_name.jpg). We have to process the image just in case the image requested (the little one) doesn't exists yet. I tried the process_image function and it works but it needs this path to work properly.