summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/http.h
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-08-01 21:14:46 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-08-01 21:14:46 +0000
commit952b95f9ee4d973cab1fe25b9cbd33c4c930a90f (patch)
tree53dfc77966b7cf7f1ad47b9c738405b710004c02 /usr.sbin/relayd/http.h
parent10aba32e8f8e8586755590c5970284d60f56dcca (diff)
rfc 7230 3.3.3 says: response with a status code of 1xx
(Informational) or 204 (No Content) MUST not have a Content-Length. Add a check for that. ok reyk@
Diffstat (limited to 'usr.sbin/relayd/http.h')
-rw-r--r--usr.sbin/relayd/http.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/http.h b/usr.sbin/relayd/http.h
index 1d38631310c..052bc0ce326 100644
--- a/usr.sbin/relayd/http.h
+++ b/usr.sbin/relayd/http.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: http.h,v 1.8 2016/07/29 10:00:12 reyk Exp $ */
+/* $OpenBSD: http.h,v 1.9 2016/08/01 21:14:45 benno Exp $ */
/*
* Copyright (c) 2012 - 2015 Reyk Floeter <reyk@openbsd.org>
@@ -241,6 +241,7 @@ struct http_descriptor {
enum httpmethod http_method;
int http_chunked;
char *http_version;
+ unsigned int http_status;
/* Rewritten path remains NULL if not used */
char *http_path_alias;