aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Uzunov <andrey.uzunov@gmail.com>2013-06-22 18:39:03 +0000
committerAndrey Uzunov <andrey.uzunov@gmail.com>2013-06-22 18:39:03 +0000
commit21c355734b03b1e39f123d14142e25f71095767a (patch)
tree3f90b8e4f29ffb9aafc6bc635694cf4fae495505
parent14dad00f46a5a1d454097ee5480ab672c03e3871 (diff)
downloadlibmicrohttpd-21c355734b03b1e39f123d14142e25f71095767a.tar.gz
libmicrohttpd-21c355734b03b1e39f123d14142e25f71095767a.zip
spdy2http: TE header was sent over SPDY
-rw-r--r--src/spdy2http/proxy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spdy2http/proxy.c b/src/spdy2http/proxy.c
index 620dc219..dc884a68 100644
--- a/src/spdy2http/proxy.c
+++ b/src/spdy2http/proxy.c
@@ -418,7 +418,9 @@ curl_header_cb(void *ptr, size_t size, size_t nmemb, void *userp)
418 if(NULL == (name = strndup(line, i - pos))) 418 if(NULL == (name = strndup(line, i - pos)))
419 DIE("No memory"); 419 DIE("No memory");
420 if(0 == strcmp(SPDY_HTTP_HEADER_CONNECTION, name) 420 if(0 == strcmp(SPDY_HTTP_HEADER_CONNECTION, name)
421 || 0 == strcmp(SPDY_HTTP_HEADER_KEEP_ALIVE, name)) 421 || 0 == strcmp(SPDY_HTTP_HEADER_KEEP_ALIVE, name)
422 || 0 == strcmp(SPDY_HTTP_HEADER_TRANSFER_ENCODING, name)
423 )
422 { 424 {
423 //forbidden in spdy, ignore 425 //forbidden in spdy, ignore
424 free(name); 426 free(name);
@@ -858,6 +860,7 @@ display_usage()
858 ); 860 );
859} 861}
860 862
863
861int 864int
862main (int argc, char *const *argv) 865main (int argc, char *const *argv)
863{ 866{