OpenBSD CVS

CVS log for src/usr.sbin/httpd/http.h


[BACK] Up to [local] / src / usr.sbin / httpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 24 10:53:27 2024 UTC (2 months, 2 weeks ago) by job
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

Sync with IANA Status Code Registry

From https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

OK sthen@ miod@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Sep 12 07:34:17 2020 UTC (3 years, 8 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Use the original requested URI for REQUEST_URI.

ok millert florian

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 8 21:41:06 2019 UTC (5 years, 1 month ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Set the REQUEST_URI CGI variable to the requested URI and query string
instead of the rewritten path and query string.

Patch from Tim Baumgard, reminded by Mischa Peters.

ok benno, reyk

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 1 21:15:30 2016 UTC (7 years, 10 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

sync http.h with relayd
ok reyk@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 11 18:49:09 2015 UTC (9 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Use "compliant" header guards by avoiding the reserved '_' namespace.

Pointed out by Markus Elfring

OK mikeb@ millert@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 11 12:52:01 2015 UTC (9 years, 3 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.11: +6 -3 lines
Diff to previous 1.11 (colored)

More http status codes.
OK benno@, reyk@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 13 09:21:15 2015 UTC (9 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

bump copyright year

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 7 16:57:17 2015 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

SVG is common enough to add it to the default types.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Nov 20 07:48:45 2014 UTC (9 years, 6 months ago) by jasper
Branch: OPENBSD_5_6
Changes since 1.5: +46 -1 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

httpd was developed very rapidly in the weeks before 5.6 release,
and it has a few flaws.  It would be nice to get these flaws fully
remediated before the next release, and that requires the community
to want to use it.
Therefore here is a "jumbo" patch that brings in the most important fixes.

committing on behalf of reyk@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 29 19:30:47 2014 UTC (9 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

whitespace spotted while studying the code

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 5 15:06:05 2014 UTC (9 years, 9 months ago) by reyk
Branch: MAIN
Changes since 1.7: +43 -1 lines
Diff to previous 1.7 (colored)

Add various RFC-based WebDAV methods to the list of accepted HTTP methods.
This fixes (Fast)CGI-based WebDAV and CalDAV (calendar) servers with httpd.

ok benno@ stsp@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 14 09:12:26 2014 UTC (9 years, 9 months ago) by doug
Branch: MAIN
Changes since 1.6: +48 -8 lines
Diff to previous 1.6 (colored)

Sync with RFC 7230-7235 phrases and IANA registered status codes.

ok reyk@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 8 18:29:42 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored)

When opening directories, re-match the location after the index file
has been appended.  This allows to use a fastcgi target as the default
index, for example index.php.

OK florian@

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 3 21:33:27 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE
Branch point for: OPENBSD_5_6
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Allocate http_host instead of carrying a buffer in the descriptor.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 25 23:23:39 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.3: +7 -3 lines
Diff to previous 1.3 (colored)

It is recommended to use a URL in the Location header of 3xx
responses.  To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 13 15:11:23 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.2: +7 -4 lines
Diff to previous 1.2 (colored)

Sync file to be identical in relayd(8) and httpd(8).

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 13 14:17:37 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.1: +19 -1 lines
Diff to previous 1.1 (colored)

Add support for media types (aka. MIME types): the types section is
compatible to nginx' mime.types file which can be included directly.
If not present, use a few built-in defaults for html, css, txt, jpeg,
gif, png, and js.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 12 23:34:54 2014 UTC (9 years, 10 months ago) by reyk
Branch: MAIN

Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server.  It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.

It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.

ok deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.