summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/server_file.c
AgeCommit message (Expand)Author
2024-04-29plug fd leak introduced in "avoid toctu" rewrite.Florian Obser
2024-04-16Prevent toctu issues in static file serving and auto index generation.Florian Obser
2024-01-06put the real sizes into the "title" attribute so that hovering shows theMarc Espie
2024-01-04make auto-index betterMarc Espie
2023-12-28don't add values we won't print, use scandir properlyMarc Espie
2022-08-15plug some memory leaks in server_file_index when failures occurOmar Polo
2022-03-04Only provide the .gz file if timestamp is >= the non-gzip file. MakeTheo de Raadt
2022-03-02struct stat from early file inspection was being used after actual fileTheo de Raadt
2022-03-02Simplify .gz handling a bitTheo Buehler
2022-02-27Add gzip-static option to httpd. This allows to deliver precompressedAlexander Bluhm
2021-04-29Use relative reference URIs in Location header on directory redirects.dv
2021-03-16A socket buffer is not the best size to read from a disk.Otto Moerbeek
2020-05-22Use the simpler HTML5 idiom to declare charset in autogenerated pages.Anthony J. Bentley
2020-05-18httpd: add a "dark mode" in directory listings and error pagescwen
2018-06-15Fix 304 Not Modified response: don't send a body, use the correct MIME type.Reyk Floeter
2017-02-02Fix support for HTTP pipelining by handling all requests in the buffer.Reyk Floeter
2017-01-31Reimplement httpd's support for byte ranges.Reyk Floeter
2017-01-30Fix error path of range requests, found while reviewing byte range support.Reyk Floeter
2016-05-17Repair some file descriptor leaks.Theo de Raadt
2016-03-08Set content charset for auto index generated page.Florian Obser
2015-08-03Fix rev 1.70 of server.c by only re-enabling the bufferevent if weFlorian Obser
2015-07-20ensure http_path is escaped before using it in Location redirection.Sebastien Marie
2015-07-18Fix check against NULL which was reverted by accident in r1.56.Matthias Kilian
2015-07-18Allow to change the default media type globally or per-location,Reyk Floeter
2015-07-17Adjust server_file_modified_since() to our style. Please keep httpd clean.Reyk Floeter
2015-07-16spacingReyk Floeter
2015-05-05Implement If-Modified-Since.Florian Obser
2015-05-03Implement byte ranges.Florian Obser
2015-04-25Prepend files or directories containing ":" with "./" in directoryFlorian Obser
2015-02-12Rename escape_uri() to url_encode() because it is the opposite ofReyk Floeter
2015-02-10Encode directory listings.Florian Obser
2015-02-08spacingReyk Floeter
2015-01-21httpd is based on relayd and had included many headers that are onlyReyk Floeter
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2015-01-13bump copyright yearReyk Floeter
2015-01-06Make httpd return "404 not found" if an intermediate component of a requestedStefan Sperling
2015-01-04add new url stripping option:Christopher Zimmermann
2015-01-01Use the HTML5 doctype for error and auto index pages because it isReyk Floeter
2014-12-21Stop pulling in <arpa/inet.h> or <arpa/nameser.h> when unnecessary.Philip Guenther
2014-12-12Like previously done in relayd, change the keyword "ssl" to "tls" toReyk Floeter
2014-12-04stop viral header propagation. none of this code uses sys/hash.hTed Unangst
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
2014-10-21Rework the error message a little bit: Do not send details of theReyk Floeter
2014-10-02Fix an error case that was never handled ending up in an endless eventReyk Floeter
2014-09-27In addition to READ, disable WRITE events when closing the fileReyk Floeter
2014-08-29Use two instead of one http descriptor for request and response.Reyk Floeter
2014-08-21Add Last-Modified: HTTP header.Christopher Zimmermann
2014-08-14Remove obsolete struct stat parameters.Christopher Zimmermann
2014-08-08When opening directories, re-match the location after the index fileReyk Floeter
2014-08-06The watermark exposed a bug in server_write that broke keep-aliveReyk Floeter