diff options
author | Doug Black <dblack@twilio.com> | 2014-03-29 23:28:06 -0700 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-03-29 23:28:06 -0700 |
commit | be672ad54adc7226d2cde7469236b707dc5971ff (patch) | |
tree | df57414975c80fa32eb80c6da79c2c7e926d0059 /core_test.go | |
parent | update README (diff) | |
download | sleepy-be672ad54adc7226d2cde7469236b707dc5971ff.tar.gz sleepy-be672ad54adc7226d2cde7469236b707dc5971ff.tar.bz2 sleepy-be672ad54adc7226d2cde7469236b707dc5971ff.zip |
add header to core_test
Diffstat (limited to 'core_test.go')
-rw-r--r-- | core_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core_test.go b/core_test.go index 196c52f..d0b17e9 100644 --- a/core_test.go +++ b/core_test.go @@ -10,10 +10,10 @@ import ( type Item struct{} -func (item Item) Get(values url.Values) (int, interface{}) { +func (item Item) Get(values url.Values, headers http.Header) (int, interface{}, http.Header) { items := []string{"item1", "item2"} data := map[string][]string{"items": items} - return 200, data + return 200, data, nil } func TestBasicGet(t *testing.T) { |