Skip to contentSkip to conversation

tabled: add new HTTP header test

PATCH New Jeff Garzik 1 participant 1 message Mar 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tabled: add new HTTP header test

commit f98a7bfd3952944b56fbfb0aef1531472d4c2354

Author: Jeff Garzik <[email protected]>
Date:   Sun Mar 7 07:58:25 2010 -0500

[test] add new hdr-content-type test

Verifies that user-provided Content-type header is stored and returned on subsequent GET requests.

test/.gitignore +1 -0
index c99d4e2..26ba541 100644
@@ -5,4 +5,5 @@ basic-object
 it-works
 large-object
 wait-for-listen
+hdr-content-type
 
test/Makefile.am +3 -1
index 2e18349..62b279e 100644
@@ -24,11 +24,12 @@ TESTS =				\
 	basic-bucket		\
 	basic-object		\
 	large-object		\
+	hdr-content-type	\
 	stop-daemon		\
 	clean-db
 
 check_PROGRAMS		= basic-bucket basic-object it-works large-object \
-			  wait-for-listen
+			  hdr-content-type wait-for-listen
 
 TESTLDADD		= ../lib/libhttpstor.la	\
 			  ../lib/libhttputil.a	\
@@ -36,6 +37,7 @@ TESTLDADD		= ../lib/libhttpstor.la	\
 basic_bucket_LDADD	= $(TESTLDADD)
 basic_object_LDADD	= $(TESTLDADD)
 large_object_LDADD	= $(TESTLDADD)
+hdr_content_type_LDADD	= $(TESTLDADD)
 it_works_LDADD		= $(TESTLDADD)
 
 wait_for_listen_LDADD	= ../lib/libhttputil.a
test/hdr-content-type.c new file +130 -0

130 lines not on this page · raw message