curl/lib
Cory Benfield 0761a51ee0 http2: Add space between colon and header value
curl's representation of HTTP/2 responses involves transforming the
response to a format that is similar to HTTP/1.1. Prior to this change,
curl would do this by separating header names and values with only a
colon, without introducing a space after the colon.

While this is technically a valid way to represent a HTTP/1.1 header
block, it is much more common to see a space following the colon. This
change introduces that space, to ensure that incautious tools are safely
able to parse the header block.

This also ensures that the difference between the HTTP/1.1 and HTTP/2
response layout is as minimal as possible.

Bug: https://github.com/curl/curl/issues/797

Closes #798
Fixes #797
2016-05-12 21:12:10 +02:00
..
vauth URLs: change http to https in many places 2016-04-06 11:58:34 +02:00
vtls openssl: fix compile-time warning in Curl_ossl_check_cxn() 2016-05-12 08:36:21 +02:00
.gitignore
amigaos.c code: style updates 2016-04-03 22:38:36 +02:00
amigaos.h
arpa_telnet.h
asyn-ares.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
asyn-thread.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
asyn.h
base64.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
checksrc.pl checksrc: taught to skip comments 2016-04-19 08:52:22 +02:00
CMakeLists.txt
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-vxworks.h
config-win32.h config-w32.h: Fixed compilation warning when /Wall enabled 2016-03-19 11:05:06 +00:00
config-win32ce.h
conncache.c connections: non-HTTP proxies on different ports aren't reused either 2016-05-03 08:18:15 +02:00
conncache.h
connect.c connect: fix invalid "Network is unreachable" errors 2016-05-08 14:29:26 +02:00
connect.h URLs: change more http to https 2016-02-04 18:46:54 -05:00
content_encoding.c
content_encoding.h
cookie.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
cookie.h
curl_addrinfo.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake
curl_des.c openssl: remove most BoringSSL #ifdefs. 2016-02-09 08:46:36 +01:00
curl_des.h openssl: remove most BoringSSL #ifdefs. 2016-02-09 08:46:36 +01:00
curl_endian.c
curl_endian.h
curl_fnmatch.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_fnmatch.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c GSS: make Curl_gss_log_error more verbose 2016-03-29 16:51:29 +02:00
curl_gssapi.h GSS: make Curl_gss_log_error more verbose 2016-03-29 16:51:29 +02:00
curl_hmac.h
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h includes: avoid duplicate memory callback typdefs even harder 2016-04-18 15:04:17 +02:00
curl_memrchr.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm_core.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_ntlm_core.h
curl_ntlm_wb.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_ntlm_wb.h
curl_printf.h
curl_rtmp.c URLs: change more http to https 2016-02-04 18:46:54 -05:00
curl_rtmp.h
curl_sasl.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_sasl.h vauth: Moved the NTLM authentication code to the new vauth directory 2016-03-25 15:11:09 +00:00
curl_sec.h
curl_setup_once.h
curl_setup.h sendf.c: added ability to call recv() before send() as workaround 2016-04-20 09:22:48 +02:00
curl_sspi.c
curl_sspi.h
curl_threads.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_threads.h
curlx.h
dict.c
dict.h
dotdot.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
dotdot.h
easy.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
easyif.h
escape.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
escape.h
file.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
file.h
fileinfo.c
fileinfo.h
firefox-db2pem.sh
formdata.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
formdata.h code: style updates 2016-04-03 22:38:36 +02:00
ftp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ftp.h
ftplistparser.c
ftplistparser.h
getenv.c
getinfo.c mbedtls: Fix session resume 2016-04-28 02:57:38 -04:00
getinfo.h
gopher.c
gopher.h
hash.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
hash.h
hmac.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
hostasyn.c
hostcheck.c URLs: change more http to https 2016-02-04 18:46:54 -05:00
hostcheck.h
hostip4.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip6.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip.h
hostsyn.c
http2.c http2: Add space between colon and header value 2016-05-12 21:12:10 +02:00
http2.h http2: Add Curl_http2_strerror for HTTP/2 error codes 2016-04-11 21:43:31 -04:00
http_chunks.c http_chunks: removed checksrc disable 2016-04-19 08:53:31 +02:00
http_chunks.h
http_digest.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_digest.h
http_negotiate.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_negotiate.h vauth: Moved the Negotiate authentication code to the new vauth directory 2016-03-26 17:21:22 +00:00
http_ntlm.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_ntlm.h http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
http_proxy.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_proxy.h
http.c TLS: move the ALPN/NPN enable bits to the connection 2016-05-09 15:30:25 -04:00
http.h http2: Use size_t type for data drain count 2016-04-12 00:37:44 -04:00
idn_win32.c idn_win32: Use boolean based success codes 2016-03-11 07:24:39 +00:00
if2ip.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
if2ip.h
imap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
imap.h
inet_ntop.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
inet_ntop.h
inet_pton.c inet_pton.c: Fixed compilation warnings 2016-03-20 11:14:58 +00:00
inet_pton.h
krb5.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ldap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
libcurl.def
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
llist.h
Makefile.am lib/checksrc.whitelist: not needed anymore 2016-04-19 08:56:05 +02:00
makefile.amiga
Makefile.b32 build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
makefile.dj
Makefile.inc http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
Makefile.m32 makefile.m32: add missing libs for static -winssl-ssh2 builds 2016-03-05 21:50:12 -05:00
Makefile.netware build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
Makefile.vc6 http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
Makefile.vxworks
Makefile.Watcom build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
md4.c
md5.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
memdebug.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
memdebug.h memdebug.h: remove inclusion of other headers 2016-04-29 15:33:46 +02:00
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c curl/mprintf.h: remove support for _MPRINTF_REPLACE 2016-04-01 10:46:36 +02:00
multi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
multihandle.h
multiif.h
netrc.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nwlib.c nw: please the stricter checksrc 2016-04-03 23:07:30 +02:00
nwos.c nw: please the stricter checksrc 2016-04-03 23:07:30 +02:00
objnames-test08.sh
objnames-test10.sh
objnames.inc
openldap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
parsedate.c
parsedate.h
pingpong.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
pingpong.h
pipeline.c pipeline: Sanity check pipeline pointer before accessing it. 2016-03-08 00:25:53 +01:00
pipeline.h
pop3.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
pop3.h
progress.c
progress.h
rawstr.c
rawstr.h
rtsp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
rtsp.h
security.c
select.c
select.h
sendf.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
sendf.h
setup-os400.h
setup-vms.h
share.c code: style updates 2016-04-03 22:38:36 +02:00
share.h
sigpipe.h
slist.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
slist.h
smb.c
smb.h
smtp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
smtp.h
sockaddr.h
socks_gssapi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
socks_sspi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
socks.c code: style updates 2016-04-03 22:38:36 +02:00
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h code: style updates 2016-04-03 22:38:36 +02:00
ssh.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ssh.h SSH: new CURLOPT_QUOTE command "statvfs" 2016-03-27 17:52:16 +02:00
strdup.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
strdup.h
strequal.c
strequal.h
strerror.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
telnet.h
tftp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
tftp.h
timeval.c curlx_tvdiff: handle 32bit time_t overflows 2016-02-12 08:13:03 +01:00
timeval.h
transfer.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
transfer.h multi: multi_reconnect_request is the former Curl_reconnect_request 2016-03-30 07:52:28 +02:00
url.c TLS: move the ALPN/NPN enable bits to the connection 2016-05-09 15:30:25 -04:00
url.h CURLOPT_SOCKS5_GSSAPI_SERVICE: Merged with CURLOPT_PROXY_SERVICE_NAME 2016-04-09 20:47:05 +01:00
urldata.h TLS: move the ALPN/NPN enable bits to the connection 2016-05-09 15:30:25 -04:00
version.c version: init moved to private name space, added protos 2016-03-17 00:55:46 +01:00
warnless.c warnless?: Added some integer based conversion functions 2016-03-26 11:09:01 +00:00
warnless.h warnless.h: Removed spurious character from commit 696bc6b9c9 2016-03-26 11:35:07 +00:00
wildcard.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
wildcard.h
x509asn1.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
x509asn1.h